Home
last modified time | relevance | path

Searched refs:euid (Results 1 – 18 of 18) sorted by relevance

/glibc-2.36/nptl/
Dtst-setuid1.c38 uid_t ruid, euid, suid; in check_prev_uid() local
39 if (getresuid (&ruid, &euid, &suid) < 0) in check_prev_uid()
45 if (ruid != prev_ruid || euid != prev_euid || suid != prev_suid) in check_prev_uid()
48 ruid, euid, suid, prev_ruid, prev_euid, prev_suid); in check_prev_uid()
90 uid_t ruid, euid, suid; in test_setuid1() local
91 if (getresuid (&ruid, &euid, &suid) < 0) in test_setuid1()
97 if (ruid != nobody_uid || euid != nobody_uid || suid != nobody_uid) in test_setuid1()
100 ruid, euid, suid, nobody_uid, nobody_uid, nobody_uid); in test_setuid1()
134 uid_t ruid, euid, suid; in test_setuid2() local
135 if (getresuid (&ruid, &euid, &suid) < 0) in test_setuid2()
[all …]
Dtst-setuid2.c105 static uid_t ruid, euid, suid; variable
110 if (getresuid (&ruid, &euid, &suid) < 0) in get_thread_ids()
138 if (ruid != 1001 || euid != 1002 || suid != 1003) in do_test()
140 (long) ruid, (long) euid, (long) suid); in do_test()
/glibc-2.36/sysdeps/mach/hurd/
Dgeteuid.c28 uid_t euid; in __geteuid() local
37 euid = -1; in __geteuid()
40 euid = _hurd_id.gen.uids[0]; in __geteuid()
43 euid = _hurd_id.aux.uids[0]; in __geteuid()
48 euid = -1; in __geteuid()
53 if (euid == -1 && errno == EINTR) in __geteuid()
57 return euid; in __geteuid()
Dsetreuid.c26 __setreuid (uid_t ruid, uid_t euid) in __setreuid() argument
46 if (euid != -1) in __setreuid()
51 newgen = &euid; in __setreuid()
56 _hurd_id.gen.uids[0] = euid; in __setreuid()
Dsetresuid.c27 __setresuid (uid_t ruid, uid_t euid, uid_t suid) in __setresuid() argument
48 if (euid != -1) in __setresuid()
53 newgen = &euid; in __setresuid()
58 _hurd_id.gen.uids[0] = euid; in __setresuid()
Dgetresuid.c27 __getresuid (uid_t *ruid, uid_t *euid, uid_t *suid) in __getresuid() argument
46 *euid = _hurd_id.gen.nuids < 1 ? real : _hurd_id.gen.uids[0]; in __getresuid()
/glibc-2.36/sysdeps/posix/
Deuidaccess.c96 static uid_t euid; variable
126 uid_t euid; in euidaccess() local
134 euid = geteuid (); in euidaccess()
138 if (uid == euid && gid == egid) in euidaccess()
156 euid = __geteuid (); in euidaccess()
159 if (__getuid () == euid && __getgid () == egid) in euidaccess()
166 if (euid == 0 && ((mode & X_OK) == 0 in euidaccess()
170 if (euid == stats.st_uid) in euidaccess()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dsetreuid.c24 __setreuid (uid_t ruid, uid_t euid) in __setreuid() argument
27 return INLINE_SETXID_SYSCALL (setreuid32, 2, ruid, euid); in __setreuid()
29 return INLINE_SETXID_SYSCALL (setreuid, 2, ruid, euid); in __setreuid()
Dsetresuid.c24 __setresuid (uid_t ruid, uid_t euid, uid_t suid) in __setresuid() argument
27 return INLINE_SETXID_SYSCALL (setresuid32, 3, ruid, euid, suid); in __setresuid()
29 return INLINE_SETXID_SYSCALL (setresuid, 3, ruid, euid, suid); in __setresuid()
/glibc-2.36/login/programs/
Dpt_chown.c148 uid_t euid = geteuid (); in main() local
157 if (argc == 1 && euid == 0) in main()
161 if (uid != euid) in main()
210 if (euid != 0) in main()
/glibc-2.36/sunrpc/
Dkey_call.c320 uid_t euid; in key_call_keyenvoy() local
334 euid = __geteuid (); in key_call_keyenvoy()
336 __setreuid (euid, ruid); in key_call_keyenvoy()
338 __setreuid (ruid, euid); in key_call_keyenvoy()
/glibc-2.36/posix/
Dsetresuid.c25 __setresuid (uid_t ruid, uid_t euid, uid_t suid) in __setresuid() argument
Dgetresuid.c24 __getresuid (uid_t *ruid, uid_t *euid, uid_t *suid) in __getresuid() argument
/glibc-2.36/nis/
Dnis_call.c130 uid_t euid = geteuid (); in __libc_lock_define_initialized() local
135 if (ckey_cache_pid != pid || ckey_cache_euid != euid) in __libc_lock_define_initialized()
139 ckey_cache_euid = euid; in __libc_lock_define_initialized()
/glibc-2.36/manual/
Dusers.texi363 @deftypefun int setreuid (uid_t @var{ruid}, uid_t @var{euid})
369 effective user ID to @var{euid}. If @var{ruid} is @code{-1}, it means
370 not to change the real user ID; likewise if @var{euid} is @code{-1}, it
700 static uid_t euid, ruid;
711 status = seteuid (euid);
713 status = setreuid (ruid, euid);
733 status = setreuid (euid, ruid);
749 euid = geteuid ();
/glibc-2.36/ChangeLog.old/
DChangeLog.101707 EINVAL if ruid, euid or suid are out of the range -1U .. 65534.
DChangeLog.136869 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
DChangeLog.166947 euid and egid.