Lines Matching defs:scrp
578 * "scrp" has permission to act on credentials set "tcrp". It enforces the
584 * (2) if the zone ids don't match, and scrp is not in the global zone or
586 * (3) if the real or effective user id of scrp matches the real or saved
587 * user id of tcrp or scrp has the PRIV_PROC_OWNER privilege, the check
592 hasprocperm(const cred_t *tcrp, const cred_t *scrp)
594 if (scrp == tcrp)
596 if (scrp->cr_zone != tcrp->cr_zone &&
597 (scrp->cr_zone != global_zone ||
598 secpolicy_proc_zone(scrp) != 0))
600 if (scrp->cr_uid == tcrp->cr_ruid ||
601 scrp->cr_ruid == tcrp->cr_ruid ||
602 scrp->cr_uid == tcrp->cr_suid ||
603 scrp->cr_ruid == tcrp->cr_suid ||
604 !PRIV_POLICY(scrp, PRIV_PROC_OWNER, B_FALSE, EPERM, "hasprocperm"))
617 prochasprocperm(proc_t *tp, proc_t *sp, const cred_t *scrp)
627 if (tp->p_sessp != sp->p_sessp && secpolicy_basic_proc(scrp) != 0)
633 rets = hasprocperm(tcrp, scrp);