Home
last modified time | relevance | path

Searched refs:ruid (Results 1 – 19 of 19) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/setreuid/
Dsetreuid01.c54 static uid_t ruid, euid; /* real and effective user ids */ variable
72 ruid = getuid(); /* get real uid */ in main()
73 UID16_CHECK(ruid, setreuid, cleanup); in main()
112 TEST(SETREUID(cleanup, ruid, -1)); in main()
129 TEST(SETREUID(cleanup, -1, ruid)); in main()
146 TEST(SETREUID(cleanup, ruid, ruid)); in main()
/third_party/ltp/testcases/kernel/syscalls/utils/
Dcompat_16.h35 int setresuid(uid_t ruid, uid_t euid, uid_t suid);
36 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
125 int SETREUID(void (cleanup)(void), UID_T ruid, UID_T euid) in SETREUID() argument
127 LTP_CREATE_SYSCALL(setreuid, cleanup, ruid, euid); in SETREUID()
134 int SETRESUID(void (cleanup)(void), UID_T ruid, UID_T euid, UID_T suid) in SETRESUID() argument
136 LTP_CREATE_SYSCALL(setresuid, cleanup, ruid, euid, suid); in SETRESUID()
139 int GETRESUID(void (cleanup)(void), UID_T *ruid, UID_T *euid, UID_T *suid) in GETRESUID() argument
141 LTP_CREATE_SYSCALL(getresuid, cleanup, ruid, euid, suid); in GETRESUID()
Dcompat_tst_16.h32 int setresuid(uid_t ruid, uid_t euid, uid_t suid);
122 int SETREUID(UID_T ruid, UID_T euid) in SETREUID() argument
124 TST_CREATE_SYSCALL(setreuid, ruid, euid); in SETREUID()
131 int SETRESUID(UID_T ruid, UID_T euid, UID_T suid) in SETRESUID() argument
133 TST_CREATE_SYSCALL(setresuid, ruid, euid, suid); in SETRESUID()
/third_party/ltp/testcases/kernel/syscalls/mount/
Dmount03_setuid_test.c35 static uid_t ruid; variable
43 status = setreuid(ruid, 0); in do_setuid()
59 ruid = getuid(); in main()
/third_party/musl/src/unistd/
Dsetreuid.c5 int setreuid(uid_t ruid, uid_t euid) in setreuid() argument
7 return __setxid(SYS_setreuid, ruid, euid, 0); in setreuid()
Dsetresuid.c6 int setresuid(uid_t ruid, uid_t euid, uid_t suid) in setresuid() argument
8 return __setxid(SYS_setresuid, ruid, euid, suid); in setresuid()
/third_party/musl/src/misc/
Dgetresuid.c5 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid) in getresuid() argument
7 return syscall(SYS_getresuid, ruid, euid, suid); in getresuid()
/third_party/ltp/lib/
Dtst_safe_macros.c101 uid_t ruid, uid_t euid) in safe_setreuid() argument
105 rval = setreuid(ruid, euid); in safe_setreuid()
109 (long)ruid, (long)euid); in safe_setreuid()
Dsafe_macros.c327 uid_t *ruid, uid_t *euid, uid_t *suid) in safe_getresuid() argument
331 rval = getresuid(ruid, euid, suid); in safe_getresuid()
335 file, lineno, ruid, euid, suid); in safe_getresuid()
/third_party/ltp/testcases/kernel/syscalls/sched_setscheduler/
Dsched_setscheduler03.c110 uid_t ruid, euid, suid; in setup() local
142 SAFE_GETRESUID(&ruid, &euid, &suid); in setup()
/third_party/ltp/include/
Dtst_safe_macros.h118 uid_t ruid, uid_t euid);
120 #define SAFE_SETREUID(ruid, euid) \ argument
121 safe_setreuid(__FILE__, __LINE__, (ruid), (euid))
123 #define SAFE_GETRESUID(ruid, euid, suid) \ argument
124 safe_getresuid(__FILE__, __LINE__, NULL, (ruid), (euid), (suid))
Dsafe_macros_fn.h88 uid_t *ruid, uid_t *euid, uid_t *suid);
/third_party/ltp/include/old/
Dsafe_macros.h85 #define SAFE_GETRESUID(cleanup_fn, ruid, euid, suid) \ argument
86 safe_getresuid(__FILE__, __LINE__, cleanup_fn, (ruid), (euid), (suid))
/third_party/glib/glib/
Dgutils.c3062 uid_t ruid, euid, suid; /* Real, effective and saved user ID's */ in g_check_setuid()
3073 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); in g_check_setuid()
3076 if (getresuid (&ruid, &euid, &suid) != 0 || in g_check_setuid()
3080 suid = ruid = getuid (); in g_check_setuid()
3086 is_setuid = (ruid != euid || ruid != suid || in g_check_setuid()
/third_party/ntfs-3g/libfuse-lite/
Dfusermount.c125 uid_t ruid, euid, suid; in restore_privs() local
127 if (getresuid(&ruid, &euid, &suid) < 0) { in restore_privs()
/third_party/ltp/testcases/kernel/connectors/pec/
Dpec_listener.c206 pe->event_data.id.e.euid, pe->event_data.id.r.ruid); in process_event()
/third_party/python/Modules/clinic/
Dposixmodule.c.h3834 os_setreuid_impl(PyObject *module, uid_t ruid, uid_t euid);
3840 uid_t ruid; in os_setreuid() local
3846 if (!_Py_Uid_Converter(args[0], &ruid)) { in os_setreuid()
3852 return_value = os_setreuid_impl(module, ruid, euid); in os_setreuid()
7556 os_setresuid_impl(PyObject *module, uid_t ruid, uid_t euid, uid_t suid);
7562 uid_t ruid; in os_setresuid() local
7569 if (!_Py_Uid_Converter(args[0], &ruid)) { in os_setresuid()
7578 return_value = os_setresuid_impl(module, ruid, euid, suid); in os_setresuid()
/third_party/python/Modules/
Dposixmodule.c7959 os_setreuid_impl(PyObject *module, uid_t ruid, uid_t euid) in os_setreuid_impl() argument
7962 if (setreuid(ruid, euid) < 0) { in os_setreuid_impl()
12448 os_setresuid_impl(PyObject *module, uid_t ruid, uid_t euid, uid_t suid) in os_setresuid_impl() argument
12451 if (setresuid(ruid, euid, suid) < 0) in os_setresuid_impl()
12492 uid_t ruid, euid, suid; in os_getresuid_impl() local
12493 if (getresuid(&ruid, &euid, &suid) < 0) in os_getresuid_impl()
12495 return Py_BuildValue("(NNN)", _PyLong_FromUid(ruid), in os_getresuid_impl()
/third_party/python/Doc/library/
Dos.rst398 Return a tuple (ruid, euid, suid) denoting the current process's
546 .. function:: setresuid(ruid, euid, suid)
555 .. function:: setreuid(ruid, euid)