• Home
  • Raw
  • Download

Lines Matching refs:acl

37 	struct posix_acl *acl;  member
44 struct posix_acl acl; member
56 &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_encode()
93 struct posix_acl *acl, int encode_entries, int typeflag) in nfsacl_encode() argument
95 int entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfsacl_encode()
102 .acl = acl, in nfsacl_encode()
113 if (encode_entries && acl && acl->a_count == 3) { in nfsacl_encode()
114 struct posix_acl *acl2 = &aclbuf.acl; in nfsacl_encode()
124 acl2->a_entries[0] = acl->a_entries[0]; /* ACL_USER_OBJ */ in nfsacl_encode()
125 acl2->a_entries[1] = acl->a_entries[1]; /* ACL_GROUP_OBJ */ in nfsacl_encode()
126 acl2->a_entries[2] = acl->a_entries[1]; /* ACL_MASK */ in nfsacl_encode()
128 acl2->a_entries[3] = acl->a_entries[2]; /* ACL_OTHER */ in nfsacl_encode()
129 nfsacl_desc.acl = acl2; in nfsacl_encode()
142 struct posix_acl *acl; member
154 if (!nfsacl_desc->acl) { in xdr_nfsace_decode()
157 nfsacl_desc->acl = posix_acl_alloc(desc->array_len, GFP_KERNEL); in xdr_nfsace_decode()
158 if (!nfsacl_desc->acl) in xdr_nfsace_decode()
163 entry = &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_decode()
219 posix_acl_from_nfsacl(struct posix_acl *acl) in posix_acl_from_nfsacl() argument
224 if (!acl) in posix_acl_from_nfsacl()
227 sort(acl->a_entries, acl->a_count, sizeof(struct posix_acl_entry), in posix_acl_from_nfsacl()
231 FOREACH_ACL_ENTRY(pa, acl, pe) { in posix_acl_from_nfsacl()
245 if (acl->a_count == 4 && group_obj && mask && in posix_acl_from_nfsacl()
248 memmove(mask, mask+1, (3 - (mask - acl->a_entries)) * in posix_acl_from_nfsacl()
250 acl->a_count = 3; in posix_acl_from_nfsacl()
286 posix_acl_from_nfsacl(nfsacl_desc.acl) != 0) { in nfsacl_decode()
287 posix_acl_release(nfsacl_desc.acl); in nfsacl_decode()
290 *pacl = nfsacl_desc.acl; in nfsacl_decode()