Lines Matching refs:tcr
574 cred_t *tcr; in priv_proc_cred_perm() local
579 crhold(tcr = tp->p_cred); in priv_proc_cred_perm()
582 if (scr == tcr && !(tp->p_flag & SNOCD)) in priv_proc_cred_perm()
585 idsmatch = (scr->cr_uid == tcr->cr_uid && in priv_proc_cred_perm()
586 scr->cr_uid == tcr->cr_ruid && in priv_proc_cred_perm()
587 scr->cr_uid == tcr->cr_suid && in priv_proc_cred_perm()
588 scr->cr_gid == tcr->cr_gid && in priv_proc_cred_perm()
589 scr->cr_gid == tcr->cr_rgid && in priv_proc_cred_perm()
590 scr->cr_gid == tcr->cr_sgid && in priv_proc_cred_perm()
597 if (scr->cr_zone != tcr->cr_zone && secpolicy_proc_zone(scr) != 0) { in priv_proc_cred_perm()
603 if (!idsmatch && secpolicy_proc_owner(scr, tcr, 0) != 0) in priv_proc_cred_perm()
616 if (!priv_issubset(&CR_IPRIV(tcr), eset) || in priv_proc_cred_perm()
617 !priv_issubset(&CR_OPPRIV(tcr), eset) || in priv_proc_cred_perm()
618 !priv_issubset(&CR_LPRIV(tcr), &CR_LPRIV(scr)) || in priv_proc_cred_perm()
619 !idsmatch && secpolicy_proc_owner(scr, tcr, mode) != 0) in priv_proc_cred_perm()
624 *pcr = tcr; in priv_proc_cred_perm()
626 crfree(tcr); in priv_proc_cred_perm()