Lines Matching refs:suid
572 !uid_eq(old->suid, keuid) && in __sys_setreuid()
584 new->suid = new->euid; in __sys_setreuid()
638 new->suid = new->uid = kuid; in __sys_setuid()
644 } else if (!uid_eq(kuid, old->uid) && !uid_eq(kuid, new->suid)) { in __sys_setuid()
676 long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid) in __sys_setresuid() argument
687 ksuid = make_kuid(ns, suid); in __sys_setresuid()
695 if ((suid != (uid_t) -1) && !uid_valid(ksuid)) in __sys_setresuid()
704 (suid == (uid_t) -1 || uid_eq(ksuid, old->suid))) in __sys_setresuid()
708 !uid_eq(kruid, old->euid) && !uid_eq(kruid, old->suid); in __sys_setresuid()
710 !uid_eq(keuid, old->euid) && !uid_eq(keuid, old->suid); in __sys_setresuid()
711 suid_new = suid != (uid_t) -1 && !uid_eq(ksuid, old->uid) && in __sys_setresuid()
712 !uid_eq(ksuid, old->euid) && !uid_eq(ksuid, old->suid); in __sys_setresuid()
731 if (suid != (uid_t) -1) in __sys_setresuid()
732 new->suid = ksuid; in __sys_setresuid()
751 SYSCALL_DEFINE3(setresuid, uid_t, ruid, uid_t, euid, uid_t, suid) in SYSCALL_DEFINE3() argument
753 return __sys_setresuid(ruid, euid, suid); in SYSCALL_DEFINE3()
760 uid_t ruid, euid, suid; in SYSCALL_DEFINE3() local
764 suid = from_kuid_munged(cred->user_ns, cred->suid); in SYSCALL_DEFINE3()
770 return put_user(suid, suidp); in SYSCALL_DEFINE3()
891 uid_eq(kuid, old->suid) || uid_eq(kuid, old->fsuid) || in __sys_setfsuid()
1682 uid_eq(cred->uid, tcred->suid) && in check_prlimit_permission()