Lines Matching refs:acl
15 struct posix_acl *acl; in orangefs_get_acl() local
50 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl()
52 acl = NULL; in orangefs_get_acl()
57 acl = ERR_PTR(ret); in orangefs_get_acl()
61 return acl; in orangefs_get_acl()
64 static int __orangefs_set_acl(struct inode *inode, struct posix_acl *acl, in __orangefs_set_acl() argument
90 if (acl) { in __orangefs_set_acl()
91 size = posix_acl_xattr_size(acl->a_count); in __orangefs_set_acl()
96 error = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __orangefs_set_acl()
103 __func__, name, value, size, acl); in __orangefs_set_acl()
115 set_cached_acl(inode, type, acl); in __orangefs_set_acl()
119 int orangefs_set_acl(struct inode *inode, struct posix_acl *acl, int type) in orangefs_set_acl() argument
125 if (type == ACL_TYPE_ACCESS && acl) { in orangefs_set_acl()
133 error = posix_acl_update_mode(inode, &iattr.ia_mode, &acl); in orangefs_set_acl()
141 if (acl) { in orangefs_set_acl()
142 rc = __orangefs_set_acl(inode, acl, type); in orangefs_set_acl()
157 struct posix_acl *default_acl, *acl; in orangefs_init_acl() local
162 error = posix_acl_create(dir, &mode, &default_acl, &acl); in orangefs_init_acl()
172 if (acl) { in orangefs_init_acl()
174 error = __orangefs_set_acl(inode, acl, ACL_TYPE_ACCESS); in orangefs_init_acl()
175 posix_acl_release(acl); in orangefs_init_acl()