Lines Matching defs:acl
3 * linux/fs/ceph/acl.c
20 int type, struct posix_acl *acl)
26 set_cached_acl(inode, type, acl);
38 struct posix_acl *acl;
71 acl = posix_acl_from_xattr(&init_user_ns, value, size);
73 acl = NULL;
75 pr_err_ratelimited("get acl %llx.%llx failed, err=%d\n",
77 acl = ERR_PTR(-EIO);
82 if (!IS_ERR(acl))
83 ceph_set_cached_acl(inode, type, acl);
85 return acl;
89 struct posix_acl *acl, int type)
107 if (acl) {
109 &new_mode, &acl);
116 ret = acl ? -EINVAL : 0;
126 if (acl) {
127 size = posix_acl_xattr_size(acl->a_count);
134 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size);
159 ceph_set_cached_acl(inode, type, acl);
170 struct posix_acl *acl, *default_acl;
176 err = posix_acl_create(dir, mode, &default_acl, &acl);
180 if (acl) {
181 err = posix_acl_equiv_mode(acl, mode);
185 posix_acl_release(acl);
186 acl = NULL;
190 if (!default_acl && !acl)
193 if (acl)
194 val_size1 = posix_acl_xattr_size(acl->a_count);
210 ceph_pagelist_encode_32(pagelist, acl && default_acl ? 2 : 1);
212 if (acl) {
219 err = posix_acl_to_xattr(&init_user_ns, acl,
243 as_ctx->acl = acl;
249 posix_acl_release(acl);
261 ceph_set_cached_acl(inode, ACL_TYPE_ACCESS, as_ctx->acl);