Lines Matching refs:cr_ruid
362 if ((error = suword(uap->uidp, uthread->uu_ucred->cr_ruid)))
723 if (uid != my_cred->cr_ruid && /* allow setuid(getuid()) */
834 if (euid != my_cred->cr_ruid && euid != my_cred->cr_svuid &&
938 ruid != my_cred->cr_ruid && /* allow ruid = ruid */
943 euid != my_cred->cr_ruid && /* allow euid = ruid */
961 new_ruid = my_cred->cr_ruid;
975 if (ruid != KAUTH_UID_NONE && my_cred->cr_ruid != ruid) {
979 (void)chgproccnt(my_cred->cr_ruid, -1);
1832 my_cred->cr_ruid == 0 || my_cred->cr_svuid == 0);
1985 audit_token.val[3] = my_cred->cr_ruid;