• 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/

Lines Matching defs:acl

42 	struct posix_acl *acl = kmalloc(size, flags);
43 if (acl) {
44 atomic_set(&acl->a_refcount, 1);
45 acl->a_count = count;
47 return acl;
54 posix_acl_clone(const struct posix_acl *acl, gfp_t flags)
58 if (acl) {
59 int size = sizeof(struct posix_acl) + acl->a_count *
61 clone = kmemdup(acl, size, flags);
69 * Check if an acl is valid. Returns 0 if it is, or -E... otherwise.
72 posix_acl_valid(const struct posix_acl *acl)
79 FOREACH_ACL_ENTRY(pa, acl, pe) {
143 * Returns 0 if the acl can be exactly represented in the traditional
147 posix_acl_equiv_mode(const struct posix_acl *acl, mode_t *mode_p)
153 FOREACH_ACL_ENTRY(pa, acl, pe) {
188 struct posix_acl *acl = posix_acl_alloc(3, flags);
189 if (!acl)
192 acl->a_entries[0].e_tag = ACL_USER_OBJ;
193 acl->a_entries[0].e_id = ACL_UNDEFINED_ID;
194 acl->a_entries[0].e_perm = (mode & S_IRWXU) >> 6;
196 acl->a_entries[1].e_tag = ACL_GROUP_OBJ;
197 acl->a_entries[1].e_id = ACL_UNDEFINED_ID;
198 acl->a_entries[1].e_perm = (mode & S_IRWXG) >> 3;
200 acl->a_entries[2].e_tag = ACL_OTHER;
201 acl->a_entries[2].e_id = ACL_UNDEFINED_ID;
202 acl->a_entries[2].e_perm = (mode & S_IRWXO);
203 return acl;
208 * by the acl. Returns -E... otherwise.
211 posix_acl_permission(struct inode *inode, const struct posix_acl *acl, int want)
216 FOREACH_ACL_ENTRY(pa, acl, pe) {
270 * Modify acl when creating a new inode. The caller must ensure the acl is
274 * system calls. All permissions that are not granted by the acl are removed.
275 * The permissions in the acl are changed to reflect the mode_p parameter.
278 posix_acl_create_masq(struct posix_acl *acl, mode_t *mode_p)
285 /* assert(atomic_read(acl->a_refcount) == 1); */
287 FOREACH_ACL_ENTRY(pa, acl, pe) {
336 posix_acl_chmod_masq(struct posix_acl *acl, mode_t mode)
341 /* assert(atomic_read(acl->a_refcount) == 1); */
343 FOREACH_ACL_ENTRY(pa, acl, pe) {