Lines Matching defs:scr
571 priv_proc_cred_perm(const cred_t *scr, proc_t *tp, cred_t **pcr, int mode)
583 if (scr == tcr && !(tp->p_flag & SNOCD))
586 idsmatch = (scr->cr_uid == tcr->cr_uid &&
587 scr->cr_uid == tcr->cr_ruid &&
588 scr->cr_uid == tcr->cr_suid &&
589 scr->cr_gid == tcr->cr_gid &&
590 scr->cr_gid == tcr->cr_rgid &&
591 scr->cr_gid == tcr->cr_sgid &&
598 if (scr->cr_zone != tcr->cr_zone && secpolicy_proc_zone(scr) != 0) {
604 if (!idsmatch && secpolicy_proc_owner(scr, tcr, 0) != 0)
610 * For writing, the effective set of scr must dominate all sets of tcr,
612 * The Limit set of scr must be a superset of the limitset of
615 eset = &CR_OEPRIV(scr);
619 !priv_issubset(&CR_LPRIV(tcr), &CR_LPRIV(scr)) ||
620 !idsmatch && secpolicy_proc_owner(scr, tcr, mode) != 0)