Lines Matching refs:td_ucred
257 td->td_retval[0] = td->td_ucred->cr_ruid; in sys_getuid()
259 td->td_retval[1] = td->td_ucred->cr_uid; in sys_getuid()
274 td->td_retval[0] = td->td_ucred->cr_uid; in sys_geteuid()
288 td->td_retval[0] = td->td_ucred->cr_rgid; in sys_getgid()
290 td->td_retval[1] = td->td_ucred->cr_groups[0]; in sys_getgid()
310 td->td_retval[0] = td->td_ucred->cr_groups[0]; in sys_getegid()
326 cred = td->td_ucred; in sys_getgroups()
1597 cred = td->td_ucred; in sys_getresuid()
1624 cred = td->td_ucred; in sys_getresgid()
1954 return (cr_cansee(td->td_ucred, p->p_ucred)); in p_cansee()
2083 return (cr_cansignal(td->td_ucred, p, signum)); in p_cansignal()
2103 if ((error = prison_check(td->td_ucred, p->p_ucred))) in p_cansched()
2106 if ((error = mac_proc_check_sched(td->td_ucred, p))) in p_cansched()
2109 if ((error = cr_bsd_visible(td->td_ucred, p->p_ucred))) in p_cansched()
2112 if (td->td_ucred->cr_ruid != p->p_ucred->cr_ruid && in p_cansched()
2113 td->td_ucred->cr_uid != p->p_ucred->cr_ruid) { in p_cansched()
2130 val = prison_allow(req->td->td_ucred, PR_ALLOW_UNPRIV_DEBUG); in sysctl_unprivileged_proc_debug()
2136 prison_set_allow(req->td->td_ucred, PR_ALLOW_UNPRIV_DEBUG, val); in sysctl_unprivileged_proc_debug()
2172 if ((error = prison_check(td->td_ucred, p->p_ucred))) in p_candebug()
2175 if ((error = mac_proc_check_debug(td->td_ucred, p))) in p_candebug()
2178 if ((error = cr_bsd_visible(td->td_ucred, p->p_ucred))) in p_candebug()
2187 if (!groupmember(p->p_ucred->cr_groups[i], td->td_ucred)) { in p_candebug()
2193 groupmember(p->p_ucred->cr_rgid, td->td_ucred) && in p_candebug()
2194 groupmember(p->p_ucred->cr_svgid, td->td_ucred); in p_candebug()
2200 uidsubset = (td->td_ucred->cr_uid == p->p_ucred->cr_uid && in p_candebug()
2201 td->td_ucred->cr_uid == p->p_ucred->cr_svuid && in p_candebug()
2202 td->td_ucred->cr_uid == p->p_ucred->cr_ruid); in p_candebug()
2226 error = securelevel_gt(td->td_ucred, 0); in p_candebug()
2290 if ((error = prison_check(td->td_ucred, p->p_ucred))) in p_canwait()
2293 if ((error = mac_proc_check_wait(td->td_ucred, p))) in p_canwait()
2298 if ((error = cr_bsd_visible(td->td_ucred, p->p_ucred))) in p_canwait()
2346 MPASS(td->td_realucred == td->td_ucred); in crunuse()
2413 MPASS(td->td_realucred == td->td_ucred); in crcowsync()
2420 td->td_ucred = td->td_realucred; in crcowsync()
2433 MPASS(td->td_realucred == td->td_ucred); in credbatch_add()
2634 cru2x(td->td_ucred, xcr); in cru2xt()