Lines Matching refs:perm
650 * Map Darwin ACE rights to POSIX 1e perm
665 acl_perm_t perm = 0;
668 perm |= ACL_READ;
671 perm |= ACL_WRITE;
674 perm |= ACL_EXECUTE;
676 return perm;
683 * for existing permissions for this type/id, if there is one add the perm,
685 * perm can be or'ed ACL_READ, ACL_WRITE and ACL_EXECUTE.
690 * @param perm (r) acl_perm_t permissions to add
694 static int posix_acl_add_perm(acl_t *aclp, acl_tag_t type, uid_t id, acl_perm_t perm)
713 EC_ZERO_LOG(acl_add_perm(permset, perm));
727 EC_ZERO_LOG(acl_add_perm(permset, perm));
773 acl_perm_t perm;
782 perm = map_darwin_right_to_posix_permset(darwin_ace_rights, (*def_aclp != NULL));
783 if (perm == 0)
784 continue; /* dont add empty perm */
787 ace_count, darwin_ace_flags, darwin_ace_rights, perm);
818 EC_ZERO_LOG(posix_acl_add_perm(def_aclp, tag, id, perm));
823 EC_ZERO_LOG(posix_acl_add_perm(acc_aclp, tag, id, perm));
825 EC_ZERO_LOG(posix_acl_add_perm(acc_aclp, tag, id, perm));