Lines Matching refs:perm
683 * Map Darwin ACE rights to POSIX 1e perm
698 acl_perm_t perm = 0;
701 perm |= ACL_READ;
704 perm |= ACL_WRITE;
707 perm |= ACL_EXECUTE;
709 return perm;
716 * for existing permissions for this type/id, if there is one add the perm,
718 * perm can be or'ed ACL_READ, ACL_WRITE and ACL_EXECUTE.
723 * @param perm (r) acl_perm_t permissions to add
727 static int posix_acl_add_perm(acl_t *aclp, acl_tag_t type, uid_t id, acl_perm_t perm)
746 EC_ZERO_LOG(acl_add_perm(permset, perm));
760 EC_ZERO_LOG(acl_add_perm(permset, perm));
806 acl_perm_t perm;
815 perm = map_darwin_right_to_posix_permset(darwin_ace_rights, (*def_aclp != NULL));
816 if (perm == 0)
817 continue; /* dont add empty perm */
820 ace_count, darwin_ace_flags, darwin_ace_rights, perm);
851 EC_ZERO_LOG(posix_acl_add_perm(def_aclp, tag, id, perm));
856 EC_ZERO_LOG(posix_acl_add_perm(acc_aclp, tag, id, perm));
858 EC_ZERO_LOG(posix_acl_add_perm(acc_aclp, tag, id, perm));