Lines Matching refs:euid
177 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm()
178 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm()
524 long __sys_setreuid(uid_t ruid, uid_t euid) in __sys_setreuid() argument
533 keuid = make_kuid(ns, euid); in __sys_setreuid()
537 if ((euid != (uid_t) -1) && !uid_valid(keuid)) in __sys_setreuid()
549 !uid_eq(old->euid, kruid) && in __sys_setreuid()
554 if (euid != (uid_t) -1) { in __sys_setreuid()
555 new->euid = keuid; in __sys_setreuid()
557 !uid_eq(old->euid, keuid) && in __sys_setreuid()
569 (euid != (uid_t) -1 && !uid_eq(keuid, old->uid))) in __sys_setreuid()
570 new->suid = new->euid; in __sys_setreuid()
571 new->fsuid = new->euid; in __sys_setreuid()
589 SYSCALL_DEFINE2(setreuid, uid_t, ruid, uid_t, euid) in SYSCALL_DEFINE2() argument
591 return __sys_setreuid(ruid, euid); in SYSCALL_DEFINE2()
634 new->fsuid = new->euid = kuid; in __sys_setuid()
662 long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid) in __sys_setresuid() argument
672 keuid = make_kuid(ns, euid); in __sys_setresuid()
678 if ((euid != (uid_t) -1) && !uid_valid(keuid)) in __sys_setresuid()
688 (euid == (uid_t) -1 || (uid_eq(keuid, old->euid) && in __sys_setresuid()
694 !uid_eq(kruid, old->euid) && !uid_eq(kruid, old->suid); in __sys_setresuid()
695 euid_new = euid != (uid_t) -1 && !uid_eq(keuid, old->uid) && in __sys_setresuid()
696 !uid_eq(keuid, old->euid) && !uid_eq(keuid, old->suid); in __sys_setresuid()
698 !uid_eq(ksuid, old->euid) && !uid_eq(ksuid, old->suid); in __sys_setresuid()
715 if (euid != (uid_t) -1) in __sys_setresuid()
716 new->euid = keuid; in __sys_setresuid()
719 new->fsuid = new->euid; in __sys_setresuid()
737 SYSCALL_DEFINE3(setresuid, uid_t, ruid, uid_t, euid, uid_t, suid) in SYSCALL_DEFINE3() argument
739 return __sys_setresuid(ruid, euid, suid); in SYSCALL_DEFINE3()
746 uid_t ruid, euid, suid; in SYSCALL_DEFINE3() local
749 euid = from_kuid_munged(cred->user_ns, cred->euid); in SYSCALL_DEFINE3()
754 retval = put_user(euid, euidp); in SYSCALL_DEFINE3()
876 if (uid_eq(kuid, old->uid) || uid_eq(kuid, old->euid) || in __sys_setfsuid()
1667 id_match = (uid_eq(cred->uid, tcred->euid) && in check_prlimit_permission()