Lines Matching refs:tcr
575 cred_t *tcr; in priv_proc_cred_perm() local
580 crhold(tcr = tp->p_cred); in priv_proc_cred_perm()
583 if (scr == tcr && !(tp->p_flag & SNOCD)) in priv_proc_cred_perm()
586 idsmatch = (scr->cr_uid == tcr->cr_uid && in priv_proc_cred_perm()
587 scr->cr_uid == tcr->cr_ruid && in priv_proc_cred_perm()
588 scr->cr_uid == tcr->cr_suid && in priv_proc_cred_perm()
589 scr->cr_gid == tcr->cr_gid && in priv_proc_cred_perm()
590 scr->cr_gid == tcr->cr_rgid && in priv_proc_cred_perm()
591 scr->cr_gid == tcr->cr_sgid && in priv_proc_cred_perm()
598 if (scr->cr_zone != tcr->cr_zone && secpolicy_proc_zone(scr) != 0) { in priv_proc_cred_perm()
604 if (!idsmatch && secpolicy_proc_owner(scr, tcr, 0) != 0) in priv_proc_cred_perm()
617 if (!priv_issubset(&CR_IPRIV(tcr), eset) || in priv_proc_cred_perm()
618 !priv_issubset(&CR_OPPRIV(tcr), eset) || in priv_proc_cred_perm()
619 !priv_issubset(&CR_LPRIV(tcr), &CR_LPRIV(scr)) || in priv_proc_cred_perm()
620 !idsmatch && secpolicy_proc_owner(scr, tcr, mode) != 0) in priv_proc_cred_perm()
625 *pcr = tcr; in priv_proc_cred_perm()
627 crfree(tcr); in priv_proc_cred_perm()