/third_party/ltp/testcases/kernel/syscalls/setreuid/ |
D | setreuid01.c | 54 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/ |
D | compat_16.h | 35 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()
|
D | compat_tst_16.h | 32 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/ |
D | mount03_setuid_test.c | 35 static uid_t ruid; variable 43 status = setreuid(ruid, 0); in do_setuid() 59 ruid = getuid(); in main()
|
/third_party/musl/src/unistd/ |
D | setreuid.c | 5 int setreuid(uid_t ruid, uid_t euid) in setreuid() argument 7 return __setxid(SYS_setreuid, ruid, euid, 0); in setreuid()
|
D | setresuid.c | 6 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/ |
D | getresuid.c | 5 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/ |
D | tst_safe_macros.c | 101 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()
|
D | safe_macros.c | 327 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/ |
D | sched_setscheduler03.c | 110 uid_t ruid, euid, suid; in setup() local 142 SAFE_GETRESUID(&ruid, &euid, &suid); in setup()
|
/third_party/ltp/include/ |
D | tst_safe_macros.h | 118 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))
|
D | safe_macros_fn.h | 88 uid_t *ruid, uid_t *euid, uid_t *suid);
|
/third_party/ltp/include/old/ |
D | safe_macros.h | 85 #define SAFE_GETRESUID(cleanup_fn, ruid, euid, suid) \ argument 86 safe_getresuid(__FILE__, __LINE__, cleanup_fn, (ruid), (euid), (suid))
|
/third_party/glib/glib/ |
D | gutils.c | 3062 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/ |
D | fusermount.c | 125 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/ |
D | pec_listener.c | 206 pe->event_data.id.e.euid, pe->event_data.id.r.ruid); in process_event()
|
/third_party/python/Modules/clinic/ |
D | posixmodule.c.h | 3834 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/ |
D | posixmodule.c | 7959 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/ |
D | os.rst | 398 Return a tuple (ruid, euid, suid) denoting the current process's 546 .. function:: setresuid(ruid, euid, suid) 555 .. function:: setreuid(ruid, euid)
|