• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.5.8/source3/modules/

Lines Matching defs:ace

28 	struct smb_acl_entry *ace;
75 ace = &result->acl[result->count];
77 ace->a_type = idp->id_type;
79 switch(ace->a_type) {
81 ace->uid = idp->id_data[0];
82 DEBUG(10,("case ACEID_USER ace->uid is %d\n",ace->uid));
83 ace->a_type = SMB_ACL_USER;
88 ace->gid = idp->id_data[0];
89 DEBUG(10,("case ACEID_GROUP ace->gid is %d\n",ace->gid));
90 ace->a_type = SMB_ACL_GROUP;
103 ace->a_perm = acl_entry->ace_access;
104 ace->a_perm <<= 6;
105 DEBUG(10,("ace->a_perm is %d\n",ace->a_perm));
111 ace->a_perm = ~acl_entry->ace_access & 7;
112 DEBUG(10,("ace->a_perm is %d\n",ace->a_perm));
113 ace->a_perm <<= 6;
116 DEBUG(0, ("unknown ace->type\n"));
122 ace->a_perm |= (ace->a_perm & S_IRUSR) ? SMB_ACL_READ : 0;
123 ace->a_perm |= (ace->a_perm & S_IWUSR) ? SMB_ACL_WRITE : 0;
124 ace->a_perm |= (ace->a_perm & S_IXUSR) ? SMB_ACL_EXECUTE : 0;
125 DEBUG(10,("ace->a_perm is %d\n",ace->a_perm));
151 ace = &result->acl[result->count];
153 ace->uid = 0;
154 ace->gid = 0;
155 DEBUG(10,("ace->uid = %d\n",ace->uid));
159 ace->a_perm = file_acl->g_access << 6;
160 ace->a_type = SMB_ACL_GROUP_OBJ;
164 ace->a_perm = file_acl->o_access << 6;
165 ace->a_type = SMB_ACL_OTHER;
169 ace->a_perm = file_acl->u_access << 6;
170 ace->a_type = SMB_ACL_USER_OBJ;
177 ace->a_perm |= ((ace->a_perm & S_IRUSR) ? SMB_ACL_READ : 0);
178 ace->a_perm |= ((ace->a_perm & S_IWUSR) ? SMB_ACL_WRITE : 0);
179 ace->a_perm |= ((ace->a_perm & S_IXUSR) ? SMB_ACL_EXECUTE : 0);
181 memcpy(&result->acl[result->count],ace,sizeof(struct smb_acl_entry));
183 DEBUG(10,("ace->a_perm = %d\n",ace->a_perm));
184 DEBUG(10,("ace->a_type = %d\n",ace->a_type));