• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/fs/reiserfs/

Lines Matching refs:acl

16 			    struct posix_acl *acl);
23 struct posix_acl *acl;
33 acl = posix_acl_from_xattr(value, size);
34 if (IS_ERR(acl)) {
35 return PTR_ERR(acl);
36 } else if (acl) {
37 error = posix_acl_valid(acl);
42 acl = NULL;
53 error = reiserfs_set_acl(&th, inode, type, acl);
61 posix_acl_release(acl);
69 struct posix_acl *acl;
75 acl = reiserfs_get_acl(dentry->d_inode, type);
76 if (IS_ERR(acl))
77 return PTR_ERR(acl);
78 if (acl == NULL)
80 error = posix_acl_to_xattr(acl, buffer, size);
81 posix_acl_release(acl);
93 struct posix_acl *acl;
108 acl = posix_acl_alloc(count, GFP_NOFS);
109 if (!acl)
115 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag);
116 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm);
117 switch (acl->a_entries[n].e_tag) {
124 acl->a_entries[n].e_id = ACL_UNDEFINED_ID;
132 acl->a_entries[n].e_id = le32_to_cpu(entry->e_id);
141 return acl;
144 posix_acl_release(acl);
151 static void *posix_acl_to_disk(const struct posix_acl *acl, size_t * size)
157 *size = reiserfs_acl_size(acl->a_count);
159 acl->a_count *
166 for (n = 0; n < acl->a_count; n++) {
168 entry->e_tag = cpu_to_le16(acl->a_entries[n].e_tag);
169 entry->e_perm = cpu_to_le16(acl->a_entries[n].e_perm);
170 switch (acl->a_entries[n].e_tag) {
173 entry->e_id = cpu_to_le32(acl->a_entries[n].e_id);
204 struct posix_acl *acl;
208 acl = get_cached_acl(inode, type);
209 if (acl != ACL_NOT_CACHED)
210 return acl;
240 acl = NULL;
242 acl = ERR_PTR(retval);
244 acl = posix_acl_from_disk(value, retval);
246 if (!IS_ERR(acl))
247 set_cached_acl(inode, type, acl);
250 return acl;
261 int type, struct posix_acl *acl)
274 if (acl) {
276 error = posix_acl_equiv_mode(acl, &mode);
282 acl = NULL;
289 return acl ? -EACCES : 0;
295 if (acl) {
296 value = posix_acl_to_disk(acl, &size);
320 set_cached_acl(inode, type, acl);
332 struct posix_acl *acl;
352 acl = reiserfs_get_acl(dir, ACL_TYPE_DEFAULT);
353 if (IS_ERR(acl))
354 return PTR_ERR(acl);
356 if (acl) {
364 acl);
371 acl_copy = posix_acl_clone(acl, GFP_NOFS);
395 posix_acl_release(acl);
405 /* This is used to cache the default acl before a new object is created.
418 struct posix_acl *acl;
424 acl = reiserfs_get_acl(inode, ACL_TYPE_DEFAULT);
426 if (acl && !IS_ERR(acl)) {
427 int size = reiserfs_acl_size(acl->a_count);
440 posix_acl_release(acl);
448 struct posix_acl *acl, *clone;
460 acl = reiserfs_get_acl(inode, ACL_TYPE_ACCESS);
462 if (!acl)
464 if (IS_ERR(acl))
465 return PTR_ERR(acl);
466 clone = posix_acl_clone(acl, GFP_NOFS);
467 posix_acl_release(acl);