Lines Matching refs:ruid
529 long __sys_setreuid(uid_t ruid, uid_t euid) in __sys_setreuid() argument
537 kruid = make_kuid(ns, ruid); in __sys_setreuid()
540 if ((ruid != (uid_t) -1) && !uid_valid(kruid)) in __sys_setreuid()
551 if (ruid != (uid_t) -1) { in __sys_setreuid()
573 if (ruid != (uid_t) -1 || in __sys_setreuid()
594 SYSCALL_DEFINE2(setreuid, uid_t, ruid, uid_t, euid) in SYSCALL_DEFINE2() argument
596 return __sys_setreuid(ruid, euid); in SYSCALL_DEFINE2()
667 long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid) in __sys_setresuid() argument
676 kruid = make_kuid(ns, ruid); in __sys_setresuid()
680 if ((ruid != (uid_t) -1) && !uid_valid(kruid)) in __sys_setresuid()
692 if ((ruid == (uid_t) -1 || uid_eq(kruid, old->uid)) && in __sys_setresuid()
698 ruid_new = ruid != (uid_t) -1 && !uid_eq(kruid, old->uid) && in __sys_setresuid()
712 if (ruid != (uid_t) -1) { in __sys_setresuid()
742 SYSCALL_DEFINE3(setresuid, uid_t, ruid, uid_t, euid, uid_t, suid) in SYSCALL_DEFINE3() argument
744 return __sys_setresuid(ruid, euid, suid); in SYSCALL_DEFINE3()
751 uid_t ruid, euid, suid; in SYSCALL_DEFINE3() local
753 ruid = from_kuid_munged(cred->user_ns, cred->uid); in SYSCALL_DEFINE3()
757 retval = put_user(ruid, ruidp); in SYSCALL_DEFINE3()