Searched refs:pacl (Results 1 - 7 of 7) sorted by relevance

/linux-4.4.14/fs/nfsd/
H A Dnfs4acl.c134 struct posix_acl *pacl = NULL, *dpacl = NULL; nfsd4_get_nfs4_acl() local
138 pacl = get_acl(inode, ACL_TYPE_ACCESS); nfsd4_get_nfs4_acl()
139 if (!pacl) nfsd4_get_nfs4_acl()
140 pacl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); nfsd4_get_nfs4_acl()
142 if (IS_ERR(pacl)) nfsd4_get_nfs4_acl()
143 return PTR_ERR(pacl); nfsd4_get_nfs4_acl()
146 size += 2 * pacl->a_count; nfsd4_get_nfs4_acl()
167 _posix_to_nfsv4_one(pacl, *acl, flags & ~NFS4_ACL_TYPE_DEFAULT); nfsd4_get_nfs4_acl()
175 posix_acl_release(pacl); nfsd4_get_nfs4_acl()
233 _posix_to_nfsv4_one(struct posix_acl *pacl, struct nfs4_acl *acl, _posix_to_nfsv4_one() argument
243 BUG_ON(pacl->a_count < 3); _posix_to_nfsv4_one()
244 summarize_posix_acl(pacl, &pas); _posix_to_nfsv4_one()
246 pa = pacl->a_entries; _posix_to_nfsv4_one()
375 sort_pacl_range(struct posix_acl *pacl, int start, int end) { sort_pacl_range() argument
383 if (pace_gt(&pacl->a_entries[i], sort_pacl_range()
384 &pacl->a_entries[i+1])) { sort_pacl_range()
386 swap(pacl->a_entries[i], sort_pacl_range()
387 pacl->a_entries[i + 1]); sort_pacl_range()
394 sort_pacl(struct posix_acl *pacl) sort_pacl() argument
401 if (!pacl || pacl->a_count <= 4) sort_pacl()
405 while (pacl->a_entries[i].e_tag == ACL_USER) sort_pacl()
407 sort_pacl_range(pacl, 1, i-1); sort_pacl()
409 BUG_ON(pacl->a_entries[i].e_tag != ACL_GROUP_OBJ); sort_pacl()
411 while (pacl->a_entries[j].e_tag == ACL_GROUP) sort_pacl()
413 sort_pacl_range(pacl, i, j-1); sort_pacl()
494 struct posix_acl *pacl; posix_state_to_acl() local
515 pacl = posix_acl_alloc(nace, GFP_KERNEL); posix_state_to_acl()
516 if (!pacl) posix_state_to_acl()
519 pace = pacl->a_entries; posix_state_to_acl()
556 return pacl; posix_state_to_acl()
693 struct posix_acl **pacl, struct posix_acl **dpacl, nfs4_acl_nfsv4_to_posix()
729 *pacl = posix_state_to_acl(&effective_acl_state, flags); nfs4_acl_nfsv4_to_posix()
730 if (IS_ERR(*pacl)) { nfs4_acl_nfsv4_to_posix()
731 ret = PTR_ERR(*pacl); nfs4_acl_nfsv4_to_posix()
732 *pacl = NULL; nfs4_acl_nfsv4_to_posix()
740 posix_acl_release(*pacl); nfs4_acl_nfsv4_to_posix()
741 *pacl = NULL; nfs4_acl_nfsv4_to_posix()
744 sort_pacl(*pacl); nfs4_acl_nfsv4_to_posix()
762 struct posix_acl *pacl = NULL, *dpacl = NULL; nfsd4_set_nfs4_acl() local
779 host_error = nfs4_acl_nfsv4_to_posix(acl, &pacl, &dpacl, flags); nfsd4_set_nfs4_acl()
785 host_error = inode->i_op->set_acl(inode, pacl, ACL_TYPE_ACCESS); nfsd4_set_nfs4_acl()
795 posix_acl_release(pacl); nfsd4_set_nfs4_acl()
692 nfs4_acl_nfsv4_to_posix(struct nfs4_acl *acl, struct posix_acl **pacl, struct posix_acl **dpacl, unsigned int flags) nfs4_acl_nfsv4_to_posix() argument
/linux-4.4.14/include/linux/
H A Dnfsacl.h39 struct posix_acl **pacl);
/linux-4.4.14/fs/9p/
H A Dacl.c59 struct posix_acl *pacl, *dacl; v9fs_get_acl() local
71 pacl = __v9fs_get_acl(fid, POSIX_ACL_XATTR_ACCESS); v9fs_get_acl()
73 if (!IS_ERR(dacl) && !IS_ERR(pacl)) { v9fs_get_acl()
75 set_cached_acl(inode, ACL_TYPE_ACCESS, pacl); v9fs_get_acl()
82 if (!IS_ERR(pacl)) v9fs_get_acl()
83 posix_acl_release(pacl); v9fs_get_acl()
187 struct posix_acl **dpacl, struct posix_acl **pacl) v9fs_acl_mode()
207 *pacl = acl; v9fs_acl_mode()
186 v9fs_acl_mode(struct inode *dir, umode_t *modep, struct posix_acl **dpacl, struct posix_acl **pacl) v9fs_acl_mode() argument
H A Dacl.h24 struct posix_acl **dpacl, struct posix_acl **pacl);
49 struct posix_acl **pacl) v9fs_acl_mode()
47 v9fs_acl_mode(struct inode *dir, umode_t *modep, struct posix_acl **dpacl, struct posix_acl **pacl) v9fs_acl_mode() argument
H A Dvfs_inode_dotl.c254 struct posix_acl *pacl = NULL, *dacl = NULL; v9fs_vfs_atomic_open_dotl() local
295 err = v9fs_acl_mode(dir, &mode, &dacl, &pacl); v9fs_vfs_atomic_open_dotl()
325 v9fs_set_create_acl(inode, fid, dacl, pacl); v9fs_vfs_atomic_open_dotl()
360 v9fs_put_acl(dacl, pacl); v9fs_vfs_atomic_open_dotl()
393 struct posix_acl *dacl = NULL, *pacl = NULL; v9fs_vfs_mkdir_dotl() local
415 err = v9fs_acl_mode(dir, &mode, &dacl, &pacl); v9fs_vfs_mkdir_dotl()
445 v9fs_set_create_acl(inode, fid, dacl, pacl); v9fs_vfs_mkdir_dotl()
460 v9fs_set_create_acl(inode, fid, dacl, pacl); v9fs_vfs_mkdir_dotl()
468 v9fs_put_acl(dacl, pacl); v9fs_vfs_mkdir_dotl()
826 struct posix_acl *dacl = NULL, *pacl = NULL; v9fs_vfs_mknod_dotl() local
845 err = v9fs_acl_mode(dir, &mode, &dacl, &pacl); v9fs_vfs_mknod_dotl()
876 v9fs_set_create_acl(inode, fid, dacl, pacl); v9fs_vfs_mknod_dotl()
891 v9fs_set_create_acl(inode, fid, dacl, pacl); v9fs_vfs_mknod_dotl()
897 v9fs_put_acl(dacl, pacl); v9fs_vfs_mknod_dotl()
/linux-4.4.14/fs/cifs/
H A Dxattr.c172 struct cifs_ntsd *pacl; cifs_setxattr() local
173 pacl = kmalloc(value_size, GFP_KERNEL); cifs_setxattr()
174 if (!pacl) { cifs_setxattr()
177 memcpy(pacl, ea_value, value_size); cifs_setxattr()
179 rc = pTcon->ses->server->ops->set_acl(pacl, cifs_setxattr()
186 kfree(pacl); cifs_setxattr()
321 struct cifs_ntsd *pacl; cifs_getxattr() local
326 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, cifs_getxattr()
328 if (IS_ERR(pacl)) { cifs_getxattr()
329 rc = PTR_ERR(pacl); cifs_getxattr()
337 memcpy(ea_value, pacl, acllen); cifs_getxattr()
340 kfree(pacl); cifs_getxattr()
/linux-4.4.14/fs/nfs_common/
H A Dnfsacl.c260 * @pacl: buffer in which to place decoded posix_acl
265 struct posix_acl **pacl) nfsacl_decode()
270 .xcode = pacl ? xdr_nfsace_decode : NULL, nfsacl_decode()
283 if (pacl) { nfsacl_decode()
289 *pacl = nfsacl_desc.acl; nfsacl_decode()
264 nfsacl_decode(struct xdr_buf *buf, unsigned int base, unsigned int *aclcnt, struct posix_acl **pacl) nfsacl_decode() argument

Completed in 188 milliseconds