Lines Matching refs:posix_acl

20 #include <linux/posix_acl.h>
35 static struct posix_acl **acl_by_type(struct inode *inode, int type)
47 struct posix_acl *get_cached_acl(struct inode *inode, int type)
49 struct posix_acl **p = acl_by_type(inode, type);
50 struct posix_acl *acl;
66 struct posix_acl *get_cached_acl_rcu(struct inode *inode, int type)
68 struct posix_acl *acl = rcu_dereference(*acl_by_type(inode, type));
71 struct posix_acl *ret;
82 void set_cached_acl(struct inode *inode, int type, struct posix_acl *acl)
84 struct posix_acl **p = acl_by_type(inode, type);
85 struct posix_acl *old;
93 static void __forget_cached_acl(struct posix_acl **p)
95 struct posix_acl *old;
115 static struct posix_acl *__get_acl(struct mnt_idmap *idmap,
119 struct posix_acl *sentinel;
120 struct posix_acl **p;
121 struct posix_acl *acl;
183 struct posix_acl *get_inode_acl(struct inode *inode, int type)
190 * Init a fresh posix_acl
193 posix_acl_init(struct posix_acl *acl, int count)
203 struct posix_acl *
206 const size_t size = sizeof(struct posix_acl) +
208 struct posix_acl *acl = kmalloc(size, flags);
218 struct posix_acl *
219 posix_acl_clone(const struct posix_acl *acl, gfp_t flags)
221 struct posix_acl *clone = NULL;
224 int size = sizeof(struct posix_acl) + acl->a_count *
238 posix_acl_valid(struct user_namespace *user_ns, const struct posix_acl *acl)
307 posix_acl_equiv_mode(const struct posix_acl *acl, umode_t *mode_p)
352 struct posix_acl *
355 struct posix_acl *acl = posix_acl_alloc(3, flags);
377 const struct posix_acl *acl, int want)
454 static int posix_acl_create_masq(struct posix_acl *acl, umode_t *mode_p)
511 static int __posix_acl_chmod_masq(struct posix_acl *acl, umode_t mode)
557 __posix_acl_create(struct posix_acl **acl, gfp_t gfp, umode_t *mode_p)
559 struct posix_acl *clone = posix_acl_clone(*acl, gfp);
575 __posix_acl_chmod(struct posix_acl **acl, gfp_t gfp, umode_t mode)
577 struct posix_acl *clone = posix_acl_clone(*acl, gfp);
610 struct posix_acl *acl;
636 struct posix_acl **default_acl, struct posix_acl **acl)
638 struct posix_acl *p;
639 struct posix_acl *clone;
709 struct posix_acl **acl)
759 * converting them into the struct posix_acl VFS format. The helper is
772 * Return: Allocated struct posix_acl on success, NULL for a valid header but
775 struct posix_acl *posix_acl_from_xattr(struct user_namespace *userns,
781 struct posix_acl *acl;
835 posix_acl_to_xattr(struct user_namespace *user_ns, const struct posix_acl *acl,
890 const struct posix_acl *acl, void *buffer,
937 int type, struct posix_acl *acl)
1018 struct posix_acl *acl, int type)
1039 struct posix_acl *default_acl, *acl;
1058 struct posix_acl *acl)
1091 const char *acl_name, struct posix_acl *kacl)
1167 struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap,
1171 struct posix_acl *acl;
1268 struct posix_acl *acl = NULL;
1289 struct posix_acl *acl;