Lines Matching defs:tcrp
578 * "scrp" has permission to act on credentials set "tcrp". It enforces the
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 &&
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 ||
620 cred_t *tcrp;
631 crhold(tcrp = tp->p_cred);
633 rets = hasprocperm(tcrp, scrp);
634 crfree(tcrp);