Lines Matching refs:cr_ruid
257 td->td_retval[0] = td->td_ucred->cr_ruid; in sys_getuid()
911 if (uid != oldcred->cr_ruid && /* allow setuid(getuid()) */ in sys_setuid()
937 if (uid != oldcred->cr_ruid) { in sys_setuid()
1016 if (euid != oldcred->cr_ruid && /* allow seteuid(getuid()) */ in sys_seteuid()
1322 if (((ruid != (uid_t)-1 && ruid != oldcred->cr_ruid && in sys_setreuid()
1325 euid != oldcred->cr_ruid && euid != oldcred->cr_svuid)) && in sys_setreuid()
1333 if (ruid != (uid_t)-1 && oldcred->cr_ruid != ruid) { in sys_setreuid()
1337 if ((ruid != (uid_t)-1 || newcred->cr_uid != newcred->cr_ruid) && in sys_setreuid()
1464 if (((ruid != (uid_t)-1 && ruid != oldcred->cr_ruid && in sys_setresuid()
1467 (euid != (uid_t)-1 && euid != oldcred->cr_ruid && in sys_setresuid()
1470 (suid != (uid_t)-1 && suid != oldcred->cr_ruid && in sys_setresuid()
1480 if (ruid != (uid_t)-1 && oldcred->cr_ruid != ruid) { in sys_setresuid()
1599 error1 = copyout(&cred->cr_ruid, in sys_getresuid()
1600 uap->ruid, sizeof(cred->cr_ruid)); in sys_getresuid()
1817 if (!see_other_uids && u1->cr_ruid != u2->cr_ruid) { in cr_canseeotheruids()
2033 if (cred->cr_ruid != proc->p_ucred->cr_ruid && in cr_cansignal()
2034 cred->cr_ruid != proc->p_ucred->cr_svuid && in cr_cansignal()
2035 cred->cr_uid != proc->p_ucred->cr_ruid && in cr_cansignal()
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()
2202 td->td_ucred->cr_uid == p->p_ucred->cr_ruid); in p_candebug()
3018 newcred->cr_ruid = ruip->ui_uid; in change_ruid()