Lines Matching defs:rights
2 * Copyright (c) 2004-2011 Apple Inc. All rights reserved.
9 * compliance with the License. The rights granted to you under the License
23 * Please see the License for the specific language governing rights and
609 * Determines whether the credential has the requested rights for an object secured by the supplied
613 * rights, or granted if all of the requested rights are satisfied by the ACEs so far.
621 uint32_t rights;
654 * Expand generic rights, if appropriate.
656 rights = ace->ace_rights;
657 if (rights & KAUTH_ACE_GENERIC_ALL)
658 rights |= eval->ae_exp_gall;
659 if (rights & KAUTH_ACE_GENERIC_READ)
660 rights |= eval->ae_exp_gread;
661 if (rights & KAUTH_ACE_GENERIC_WRITE)
662 rights |= eval->ae_exp_gwrite;
663 if (rights & KAUTH_ACE_GENERIC_EXECUTE)
664 rights |= eval->ae_exp_gexec;
673 if (!(eval->ae_residual & rights))
677 if (!(eval->ae_requested & rights))
743 * Apply ACE to outstanding rights.
747 /* satisfy any rights that this ACE grants */
748 eval->ae_residual = eval->ae_residual & ~rights;
749 KAUTH_DEBUG(" ACL[%d] - rights %x leave residual %x", i, rights, eval->ae_residual);
750 /* all rights satisfied? */
757 /* deny the request if any of the requested rights is denied */
758 if (eval->ae_requested & rights) {
759 KAUTH_DEBUG(" ACL[%d] - denying based on %x", i, rights);
1151 /* swap ACE rights and flags */