Lines Matching refs:suid
556 !uid_eq(old->suid, keuid) && in __sys_setreuid()
568 new->suid = new->euid; in __sys_setreuid()
622 new->suid = new->uid = kuid; in __sys_setuid()
628 } else if (!uid_eq(kuid, old->uid) && !uid_eq(kuid, new->suid)) { in __sys_setuid()
660 long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid) in __sys_setresuid() argument
670 ksuid = make_kuid(ns, suid); in __sys_setresuid()
678 if ((suid != (uid_t) -1) && !uid_valid(ksuid)) in __sys_setresuid()
690 !uid_eq(kruid, old->euid) && !uid_eq(kruid, old->suid)) in __sys_setresuid()
693 !uid_eq(keuid, old->euid) && !uid_eq(keuid, old->suid)) in __sys_setresuid()
695 if (suid != (uid_t) -1 && !uid_eq(ksuid, old->uid) && in __sys_setresuid()
696 !uid_eq(ksuid, old->euid) && !uid_eq(ksuid, old->suid)) in __sys_setresuid()
710 if (suid != (uid_t) -1) in __sys_setresuid()
711 new->suid = ksuid; in __sys_setresuid()
730 SYSCALL_DEFINE3(setresuid, uid_t, ruid, uid_t, euid, uid_t, suid) in SYSCALL_DEFINE3() argument
732 return __sys_setresuid(ruid, euid, suid); in SYSCALL_DEFINE3()
739 uid_t ruid, euid, suid; in SYSCALL_DEFINE3() local
743 suid = from_kuid_munged(cred->user_ns, cred->suid); in SYSCALL_DEFINE3()
749 return put_user(suid, suidp); in SYSCALL_DEFINE3()
864 uid_eq(kuid, old->suid) || uid_eq(kuid, old->fsuid) || in __sys_setfsuid()
1655 uid_eq(cred->uid, tcred->suid) && in check_prlimit_permission()