• Home
  • Raw
  • Download

Lines Matching refs:acl

22 	struct posix_acl *acl;  in ext4_acl_from_disk()  local
37 acl = posix_acl_alloc(count, GFP_NOFS); in ext4_acl_from_disk()
38 if (!acl) in ext4_acl_from_disk()
45 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ext4_acl_from_disk()
46 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ext4_acl_from_disk()
48 switch (acl->a_entries[n].e_tag) { in ext4_acl_from_disk()
61 acl->a_entries[n].e_uid = in ext4_acl_from_disk()
69 acl->a_entries[n].e_gid = in ext4_acl_from_disk()
80 return acl; in ext4_acl_from_disk()
83 posix_acl_release(acl); in ext4_acl_from_disk()
91 ext4_acl_to_disk(const struct posix_acl *acl, size_t *size) in ext4_acl_to_disk() argument
97 *size = ext4_acl_size(acl->a_count); in ext4_acl_to_disk()
98 ext_acl = kmalloc(sizeof(ext4_acl_header) + acl->a_count * in ext4_acl_to_disk()
104 for (n = 0; n < acl->a_count; n++) { in ext4_acl_to_disk()
105 const struct posix_acl_entry *acl_e = &acl->a_entries[n]; in ext4_acl_to_disk()
149 struct posix_acl *acl; in ext4_get_acl() local
170 acl = ext4_acl_from_disk(value, retval); in ext4_get_acl()
172 acl = NULL; in ext4_get_acl()
174 acl = ERR_PTR(retval); in ext4_get_acl()
177 return acl; in ext4_get_acl()
187 struct posix_acl *acl, int xattr_flags) in __ext4_set_acl() argument
202 return acl ? -EACCES : 0; in __ext4_set_acl()
208 if (acl) { in __ext4_set_acl()
209 value = ext4_acl_to_disk(acl, &size); in __ext4_set_acl()
219 set_cached_acl(inode, type, acl); in __ext4_set_acl()
226 ext4_set_acl(struct inode *inode, struct posix_acl *acl, int type) in ext4_set_acl() argument
230 size_t acl_size = acl ? ext4_acl_size(acl->a_count) : 0; in ext4_set_acl()
247 if ((type == ACL_TYPE_ACCESS) && acl) { in ext4_set_acl()
248 error = posix_acl_update_mode(inode, &mode, &acl); in ext4_set_acl()
255 error = __ext4_set_acl(handle, inode, type, acl, 0 /* xattr_flags */); in ext4_set_acl()
277 struct posix_acl *default_acl, *acl; in ext4_init_acl() local
280 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in ext4_init_acl()
291 if (acl) { in ext4_init_acl()
294 acl, XATTR_CREATE); in ext4_init_acl()
295 posix_acl_release(acl); in ext4_init_acl()