• Home
  • Raw
  • Download

Lines Matching refs:acl

24 	struct posix_acl *acl;  in ext2_acl_from_disk()  local
39 acl = posix_acl_alloc(count, GFP_KERNEL); in ext2_acl_from_disk()
40 if (!acl) in ext2_acl_from_disk()
47 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ext2_acl_from_disk()
48 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ext2_acl_from_disk()
49 switch(acl->a_entries[n].e_tag) { in ext2_acl_from_disk()
62 acl->a_entries[n].e_uid = in ext2_acl_from_disk()
70 acl->a_entries[n].e_gid = in ext2_acl_from_disk()
81 return acl; in ext2_acl_from_disk()
84 posix_acl_release(acl); in ext2_acl_from_disk()
92 ext2_acl_to_disk(const struct posix_acl *acl, size_t *size) in ext2_acl_to_disk() argument
98 *size = ext2_acl_size(acl->a_count); in ext2_acl_to_disk()
99 ext_acl = kmalloc(sizeof(ext2_acl_header) + acl->a_count * in ext2_acl_to_disk()
105 for (n=0; n < acl->a_count; n++) { in ext2_acl_to_disk()
106 const struct posix_acl_entry *acl_e = &acl->a_entries[n]; in ext2_acl_to_disk()
148 struct posix_acl *acl; in ext2_get_acl() local
169 acl = ext2_acl_from_disk(value, retval); in ext2_get_acl()
171 acl = NULL; in ext2_get_acl()
173 acl = ERR_PTR(retval); in ext2_get_acl()
176 return acl; in ext2_get_acl()
180 __ext2_set_acl(struct inode *inode, struct posix_acl *acl, int type) in __ext2_set_acl() argument
195 return acl ? -EACCES : 0; in __ext2_set_acl()
201 if (acl) { in __ext2_set_acl()
202 value = ext2_acl_to_disk(acl, &size); in __ext2_set_acl()
211 set_cached_acl(inode, type, acl); in __ext2_set_acl()
219 ext2_set_acl(struct inode *inode, struct posix_acl *acl, int type) in ext2_set_acl() argument
225 if (type == ACL_TYPE_ACCESS && acl) { in ext2_set_acl()
226 error = posix_acl_update_mode(inode, &mode, &acl); in ext2_set_acl()
231 error = __ext2_set_acl(inode, acl, type); in ext2_set_acl()
249 struct posix_acl *default_acl, *acl; in ext2_init_acl() local
252 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in ext2_init_acl()
262 if (acl) { in ext2_init_acl()
264 error = __ext2_set_acl(inode, acl, ACL_TYPE_ACCESS); in ext2_init_acl()
265 posix_acl_release(acl); in ext2_init_acl()