Lines Matching defs:acl
15 struct posix_acl *acl;
50 acl = posix_acl_from_xattr(&init_user_ns, value, ret);
52 acl = NULL;
54 gossip_err("inode %pU retrieving acl's failed with error %d\n",
57 acl = ERR_PTR(ret);
61 return acl;
64 static int __orangefs_set_acl(struct inode *inode, struct posix_acl *acl,
90 if (acl) {
91 size = posix_acl_xattr_size(acl->a_count);
96 error = posix_acl_to_xattr(&init_user_ns, acl, value, size);
102 "%s: name %s, value %p, size %zd, acl %p\n",
103 __func__, name, value, size, acl);
105 * Go ahead and set the extended attribute now. NOTE: Suppose acl
115 set_cached_acl(inode, type, acl);
119 int orangefs_set_acl(struct inode *inode, struct posix_acl *acl, int type)
127 if (type == ACL_TYPE_ACCESS && acl) {
131 * object's mode. If so, it sets "acl" to NULL
135 error = posix_acl_update_mode(inode, &iattr.ia_mode, &acl);
148 rc = __orangefs_set_acl(inode, acl, type);
158 struct posix_acl *default_acl, *acl;
163 error = posix_acl_create(dir, &mode, &default_acl, &acl);
175 if (acl) {
177 error = __orangefs_set_acl(inode, acl, ACL_TYPE_ACCESS);
178 posix_acl_release(acl);