Lines Matching refs:acl
36 struct posix_acl *acl; member
43 struct posix_acl acl; member
55 &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_encode()
92 struct posix_acl *acl, int encode_entries, int typeflag) in nfsacl_encode() argument
94 int entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfsacl_encode()
101 .acl = acl, in nfsacl_encode()
112 if (encode_entries && acl && acl->a_count == 3) { in nfsacl_encode()
113 struct posix_acl *acl2 = &aclbuf.acl; in nfsacl_encode()
123 acl2->a_entries[0] = acl->a_entries[0]; /* ACL_USER_OBJ */ in nfsacl_encode()
124 acl2->a_entries[1] = acl->a_entries[1]; /* ACL_GROUP_OBJ */ in nfsacl_encode()
125 acl2->a_entries[2] = acl->a_entries[1]; /* ACL_MASK */ in nfsacl_encode()
127 acl2->a_entries[3] = acl->a_entries[2]; /* ACL_OTHER */ in nfsacl_encode()
128 nfsacl_desc.acl = acl2; in nfsacl_encode()
141 struct posix_acl *acl; member
153 if (!nfsacl_desc->acl) { in xdr_nfsace_decode()
156 nfsacl_desc->acl = posix_acl_alloc(desc->array_len, GFP_KERNEL); in xdr_nfsace_decode()
157 if (!nfsacl_desc->acl) in xdr_nfsace_decode()
162 entry = &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_decode()
218 posix_acl_from_nfsacl(struct posix_acl *acl) in posix_acl_from_nfsacl() argument
223 if (!acl) in posix_acl_from_nfsacl()
226 sort(acl->a_entries, acl->a_count, sizeof(struct posix_acl_entry), in posix_acl_from_nfsacl()
230 FOREACH_ACL_ENTRY(pa, acl, pe) { in posix_acl_from_nfsacl()
244 if (acl->a_count == 4 && group_obj && mask && in posix_acl_from_nfsacl()
247 memmove(mask, mask+1, (3 - (mask - acl->a_entries)) * in posix_acl_from_nfsacl()
249 acl->a_count = 3; in posix_acl_from_nfsacl()
285 posix_acl_from_nfsacl(nfsacl_desc.acl) != 0) { in nfsacl_decode()
286 posix_acl_release(nfsacl_desc.acl); in nfsacl_decode()
289 *pacl = nfsacl_desc.acl; in nfsacl_decode()