Lines Matching refs:uid_t
538 long __sys_setreuid(uid_t ruid, uid_t euid) in __sys_setreuid()
549 if ((ruid != (uid_t) -1) && !uid_valid(kruid)) in __sys_setreuid()
551 if ((euid != (uid_t) -1) && !uid_valid(keuid)) in __sys_setreuid()
560 if (ruid != (uid_t) -1) { in __sys_setreuid()
568 if (euid != (uid_t) -1) { in __sys_setreuid()
582 if (ruid != (uid_t) -1 || in __sys_setreuid()
583 (euid != (uid_t) -1 && !uid_eq(keuid, old->uid))) in __sys_setreuid()
603 SYSCALL_DEFINE2(setreuid, uid_t, ruid, uid_t, euid) in SYSCALL_DEFINE2() argument
619 long __sys_setuid(uid_t uid) in __sys_setuid()
666 SYSCALL_DEFINE1(setuid, uid_t, uid) in SYSCALL_DEFINE1() argument
676 long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid) in __sys_setresuid()
689 if ((ruid != (uid_t) -1) && !uid_valid(kruid)) in __sys_setresuid()
692 if ((euid != (uid_t) -1) && !uid_valid(keuid)) in __sys_setresuid()
695 if ((suid != (uid_t) -1) && !uid_valid(ksuid)) in __sys_setresuid()
701 if ((ruid == (uid_t) -1 || uid_eq(kruid, old->uid)) && in __sys_setresuid()
702 (euid == (uid_t) -1 || (uid_eq(keuid, old->euid) && in __sys_setresuid()
704 (suid == (uid_t) -1 || uid_eq(ksuid, old->suid))) in __sys_setresuid()
707 ruid_new = ruid != (uid_t) -1 && !uid_eq(kruid, old->uid) && in __sys_setresuid()
709 euid_new = euid != (uid_t) -1 && !uid_eq(keuid, old->uid) && in __sys_setresuid()
711 suid_new = suid != (uid_t) -1 && !uid_eq(ksuid, old->uid) && in __sys_setresuid()
721 if (ruid != (uid_t) -1) { in __sys_setresuid()
729 if (euid != (uid_t) -1) in __sys_setresuid()
731 if (suid != (uid_t) -1) in __sys_setresuid()
751 SYSCALL_DEFINE3(setresuid, uid_t, ruid, uid_t, euid, uid_t, suid) in SYSCALL_DEFINE3() argument
756 SYSCALL_DEFINE3(getresuid, uid_t __user *, ruidp, uid_t __user *, euidp, uid_t __user *, suidp) in SYSCALL_DEFINE3()
760 uid_t ruid, euid, suid; in SYSCALL_DEFINE3()
872 long __sys_setfsuid(uid_t uid) in __sys_setfsuid()
876 uid_t old_fsuid; in __sys_setfsuid()
908 SYSCALL_DEFINE1(setfsuid, uid_t, uid) in SYSCALL_DEFINE1() argument