• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/samba-3.0.25b/source/modules/

Lines Matching defs:ace

29 	struct smb_acl_entry *ace;
76 ace = &result->acl[result->count];
78 ace->a_type = idp->id_type;
80 switch(ace->a_type) {
82 ace->uid = idp->id_data[0];
83 DEBUG(10,("case ACEID_USER ace->uid is %d\n",ace->uid));
84 ace->a_type = SMB_ACL_USER;
89 ace->gid = idp->id_data[0];
90 DEBUG(10,("case ACEID_GROUP ace->gid is %d\n",ace->gid));
91 ace->a_type = SMB_ACL_GROUP;
104 ace->a_perm = acl_entry->ace_access;
105 ace->a_perm <<= 6;
106 DEBUG(10,("ace->a_perm is %d\n",ace->a_perm));
112 ace->a_perm = ~acl_entry->ace_access & 7;
113 DEBUG(10,("ace->a_perm is %d\n",ace->a_perm));
114 ace->a_perm <<= 6;
117 DEBUG(0, ("unknown ace->type\n"));
123 ace->a_perm |= (ace->a_perm & S_IRUSR) ? SMB_ACL_READ : 0;
124 ace->a_perm |= (ace->a_perm & S_IWUSR) ? SMB_ACL_WRITE : 0;
125 ace->a_perm |= (ace->a_perm & S_IXUSR) ? SMB_ACL_EXECUTE : 0;
126 DEBUG(10,("ace->a_perm is %d\n",ace->a_perm));
152 ace = &result->acl[result->count];
154 ace->uid = 0;
155 ace->gid = 0;
156 DEBUG(10,("ace->uid = %d\n",ace->uid));
160 ace->a_perm = file_acl->g_access << 6;
161 ace->a_type = SMB_ACL_GROUP_OBJ;
165 ace->a_perm = file_acl->o_access << 6;
166 ace->a_type = SMB_ACL_OTHER;
170 ace->a_perm = file_acl->u_access << 6;
171 ace->a_type = SMB_ACL_USER_OBJ;
178 ace->a_perm |= ((ace->a_perm & S_IRUSR) ? SMB_ACL_READ : 0);
179 ace->a_perm |= ((ace->a_perm & S_IWUSR) ? SMB_ACL_WRITE : 0);
180 ace->a_perm |= ((ace->a_perm & S_IXUSR) ? SMB_ACL_EXECUTE : 0);
182 memcpy(&result->acl[result->count],ace,sizeof(struct smb_acl_entry));
184 DEBUG(10,("ace->a_perm = %d\n",ace->a_perm));
185 DEBUG(10,("ace->a_type = %d\n",ace->a_type));