Lines Matching refs:uid
455 * compatible. It says that setting the uid/gid to euid/egid is a special
467 uid_t uid;
476 uid_t uid;
480 uid = uap->uid;
481 AUDIT_ARG_UID(uid);
483 uip = uifind(uid);
491 error = mac_cred_check_setuid(oldcred, uid);
513 if (uid != oldcred->cr_ruid && /* allow setuid(getuid()) */
515 uid != oldcred->cr_svuid && /* allow setuid(saved gid) */
518 uid != oldcred->cr_uid && /* allow setuid(geteuid()) */
525 * Do we have "appropriate privileges" (are we root or uid == euid)
526 * If so, we are changing the real uid and/or saved uid.
530 uid == oldcred->cr_uid ||
537 * Set the real uid and transfer proc count to new user.
539 if (uid != oldcred->cr_ruid) {
544 * Set saved uid
546 * XXX always set saved uid even if not _POSIX_SAVED_IDS, as
550 if (uid != oldcred->cr_svuid) {
551 change_svuid(newcred, uid);
559 if (uid != oldcred->cr_uid) {
616 euid != oldcred->cr_svuid && /* allow seteuid(saved uid) */
690 * If so, we are changing the real uid and saved gid.
1001 * uid is explicit.
1330 "Unprivileged processes may see subjects/objects with different real uid");
1697 * effective uid? This includes p's euid, svuid, and ruid.
2167 * Change a process's effective uid.
2196 * Change a process's real uid.
2229 * Change a process's saved uid.