Lines Matching refs:posix_acl

20 #include <linux/posix_acl.h>
26 static struct posix_acl **acl_by_type(struct inode *inode, int type)
38 struct posix_acl *get_cached_acl(struct inode *inode, int type)
40 struct posix_acl **p = acl_by_type(inode, type);
41 struct posix_acl *acl;
57 struct posix_acl *get_cached_acl_rcu(struct inode *inode, int type)
63 void set_cached_acl(struct inode *inode, int type, struct posix_acl *acl)
65 struct posix_acl **p = acl_by_type(inode, type);
66 struct posix_acl *old;
74 static void __forget_cached_acl(struct posix_acl **p)
76 struct posix_acl *old;
96 struct posix_acl *get_acl(struct inode *inode, int type)
99 struct posix_acl **p;
100 struct posix_acl *acl;
163 * Init a fresh posix_acl
166 posix_acl_init(struct posix_acl *acl, int count)
176 struct posix_acl *
179 const size_t size = sizeof(struct posix_acl) +
181 struct posix_acl *acl = kmalloc(size, flags);
191 static struct posix_acl *
192 posix_acl_clone(const struct posix_acl *acl, gfp_t flags)
194 struct posix_acl *clone = NULL;
197 int size = sizeof(struct posix_acl) + acl->a_count *
210 posix_acl_valid(struct user_namespace *user_ns, const struct posix_acl *acl)
279 posix_acl_equiv_mode(const struct posix_acl *acl, umode_t *mode_p)
324 struct posix_acl *
327 struct posix_acl *acl = posix_acl_alloc(3, flags);
348 posix_acl_permission(struct inode *inode, const struct posix_acl *acl, int want)
416 static int posix_acl_create_masq(struct posix_acl *acl, umode_t *mode_p)
473 static int __posix_acl_chmod_masq(struct posix_acl *acl, umode_t mode)
519 __posix_acl_create(struct posix_acl **acl, gfp_t gfp, umode_t *mode_p)
521 struct posix_acl *clone = posix_acl_clone(*acl, gfp);
537 __posix_acl_chmod(struct posix_acl **acl, gfp_t gfp, umode_t mode)
539 struct posix_acl *clone = posix_acl_clone(*acl, gfp);
557 struct posix_acl *acl;
583 struct posix_acl **default_acl, struct posix_acl **acl)
585 struct posix_acl *p;
586 struct posix_acl *clone;
648 struct posix_acl **acl)
727 struct posix_acl *
734 struct posix_acl *acl;
797 posix_acl_to_xattr(struct user_namespace *user_ns, const struct posix_acl *acl,
840 struct posix_acl *acl;
861 set_posix_acl(struct inode *inode, int type, struct posix_acl *acl)
888 struct posix_acl *acl = NULL;
925 int simple_set_acl(struct inode *inode, struct posix_acl *acl, int type)
943 struct posix_acl *default_acl, *acl;