Lines Matching refs:acl
15 struct posix_acl *acl; in orangefs_get_acl() local
53 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl()
55 acl = NULL; in orangefs_get_acl()
60 acl = ERR_PTR(ret); in orangefs_get_acl()
64 return acl; in orangefs_get_acl()
67 static int __orangefs_set_acl(struct inode *inode, struct posix_acl *acl, in __orangefs_set_acl() argument
93 if (acl) { in __orangefs_set_acl()
94 size = posix_acl_xattr_size(acl->a_count); in __orangefs_set_acl()
99 error = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __orangefs_set_acl()
106 __func__, name, value, size, acl); in __orangefs_set_acl()
118 set_cached_acl(inode, type, acl); in __orangefs_set_acl()
123 struct posix_acl *acl, int type) in orangefs_set_acl() argument
131 if (type == ACL_TYPE_ACCESS && acl) { in orangefs_set_acl()
140 &iattr.ia_mode, &acl); in orangefs_set_acl()
153 rc = __orangefs_set_acl(inode, acl, type); in orangefs_set_acl()
163 struct posix_acl *default_acl, *acl; in orangefs_init_acl() local
168 error = posix_acl_create(dir, &mode, &default_acl, &acl); in orangefs_init_acl()
180 if (acl) { in orangefs_init_acl()
182 error = __orangefs_set_acl(inode, acl, ACL_TYPE_ACCESS); in orangefs_init_acl()
183 posix_acl_release(acl); in orangefs_init_acl()