Lines Matching full:pa

238 	const struct posix_acl_entry *pa, *pe;  in posix_acl_valid()  local
242 FOREACH_ACL_ENTRY(pa, acl, pe) { in posix_acl_valid()
243 if (pa->e_perm & ~(ACL_READ|ACL_WRITE|ACL_EXECUTE)) in posix_acl_valid()
245 switch (pa->e_tag) { in posix_acl_valid()
256 if (!kuid_has_mapping(user_ns, pa->e_uid)) in posix_acl_valid()
271 if (!kgid_has_mapping(user_ns, pa->e_gid)) in posix_acl_valid()
307 const struct posix_acl_entry *pa, *pe; in posix_acl_equiv_mode() local
317 FOREACH_ACL_ENTRY(pa, acl, pe) { in posix_acl_equiv_mode()
318 switch (pa->e_tag) { in posix_acl_equiv_mode()
320 mode |= (pa->e_perm & S_IRWXO) << 6; in posix_acl_equiv_mode()
323 mode |= (pa->e_perm & S_IRWXO) << 3; in posix_acl_equiv_mode()
326 mode |= pa->e_perm & S_IRWXO; in posix_acl_equiv_mode()
330 ((pa->e_perm & S_IRWXO) << 3); in posix_acl_equiv_mode()
377 const struct posix_acl_entry *pa, *pe, *mask_obj; in posix_acl_permission() local
385 FOREACH_ACL_ENTRY(pa, acl, pe) { in posix_acl_permission()
386 switch(pa->e_tag) { in posix_acl_permission()
395 pa->e_uid); in posix_acl_permission()
403 if ((pa->e_perm & want) == want) in posix_acl_permission()
409 pa->e_gid); in posix_acl_permission()
412 if ((pa->e_perm & want) == want) in posix_acl_permission()
430 for (mask_obj = pa+1; mask_obj != pe; mask_obj++) { in posix_acl_permission()
432 if ((pa->e_perm & mask_obj->e_perm & want) == want) in posix_acl_permission()
439 if ((pa->e_perm & want) == want) in posix_acl_permission()
454 struct posix_acl_entry *pa, *pe; in posix_acl_create_masq() local
461 FOREACH_ACL_ENTRY(pa, acl, pe) { in posix_acl_create_masq()
462 switch(pa->e_tag) { in posix_acl_create_masq()
464 pa->e_perm &= (mode >> 6) | ~S_IRWXO; in posix_acl_create_masq()
465 mode &= (pa->e_perm << 6) | ~S_IRWXU; in posix_acl_create_masq()
474 group_obj = pa; in posix_acl_create_masq()
478 pa->e_perm &= mode | ~S_IRWXO; in posix_acl_create_masq()
479 mode &= pa->e_perm | ~S_IRWXO; in posix_acl_create_masq()
483 mask_obj = pa; in posix_acl_create_masq()
512 struct posix_acl_entry *pa, *pe; in __posix_acl_chmod_masq() local
516 FOREACH_ACL_ENTRY(pa, acl, pe) { in __posix_acl_chmod_masq()
517 switch(pa->e_tag) { in __posix_acl_chmod_masq()
519 pa->e_perm = (mode & S_IRWXU) >> 6; in __posix_acl_chmod_masq()
527 group_obj = pa; in __posix_acl_chmod_masq()
531 mask_obj = pa; in __posix_acl_chmod_masq()
535 pa->e_perm = (mode & S_IRWXO); in __posix_acl_chmod_masq()