Lines Matching refs:ruid
509 long __sys_setreuid(uid_t ruid, uid_t euid) in __sys_setreuid() argument
517 kruid = make_kuid(ns, ruid); in __sys_setreuid()
520 if ((ruid != (uid_t) -1) && !uid_valid(kruid)) in __sys_setreuid()
531 if (ruid != (uid_t) -1) { in __sys_setreuid()
553 if (ruid != (uid_t) -1 || in __sys_setreuid()
573 SYSCALL_DEFINE2(setreuid, uid_t, ruid, uid_t, euid) in SYSCALL_DEFINE2() argument
575 return __sys_setreuid(ruid, euid); in SYSCALL_DEFINE2()
645 long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid) in __sys_setresuid() argument
653 kruid = make_kuid(ns, ruid); in __sys_setresuid()
657 if ((ruid != (uid_t) -1) && !uid_valid(kruid)) in __sys_setresuid()
674 if (ruid != (uid_t) -1 && !uid_eq(kruid, old->uid) && in __sys_setresuid()
685 if (ruid != (uid_t) -1) { in __sys_setresuid()
714 SYSCALL_DEFINE3(setresuid, uid_t, ruid, uid_t, euid, uid_t, suid) in SYSCALL_DEFINE3() argument
716 return __sys_setresuid(ruid, euid, suid); in SYSCALL_DEFINE3()
723 uid_t ruid, euid, suid; in SYSCALL_DEFINE3() local
725 ruid = from_kuid_munged(cred->user_ns, cred->uid); in SYSCALL_DEFINE3()
729 retval = put_user(ruid, ruidp); in SYSCALL_DEFINE3()