/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/musl/libc-test/src/functionalext/supplement/misc/ |
D | getresuid.c | 28 uid_t ruid = -1; in getresuid_0100() local 31 int rev = getresuid(&ruid, &euid, &suid); in getresuid_0100() 44 uid_t ruid = -1; in getresuid_0200() local 47 int rev = getresuid(&ruid, &euid, &suid); in getresuid_0200()
|
/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/ltp/lib/ |
D | tst_uid.c | 75 uid_t ruid, euid, suid; in tst_check_resuid_() local 77 SAFE_GETRESUID(&ruid, &euid, &suid); in tst_check_resuid_() 79 if (ruid == exp_ruid && euid == exp_euid && suid == exp_suid) in tst_check_resuid_() 90 (int)ruid, (int)euid, (int)suid); in tst_check_resuid_()
|
D | tst_safe_macros.c | 130 uid_t ruid, uid_t euid) in safe_setreuid() argument 134 rval = setreuid(ruid, euid); in safe_setreuid() 138 "setreuid(%li, %li) failed", (long)ruid, (long)euid); in safe_setreuid() 142 (long)ruid, (long)euid, rval); in safe_setreuid() 169 uid_t ruid, uid_t euid, uid_t suid) in safe_setresuid() argument 173 ret = setresuid(ruid, euid, suid); in safe_setresuid() 177 "setreuid(%li, %li, %li) failed", (long)ruid, in safe_setresuid() 182 (long)ruid, (long)euid, (long)suid, ret); in safe_setresuid()
|
D | safe_macros.c | 382 uid_t *ruid, uid_t *euid, uid_t *suid) in safe_getresuid() argument 386 rval = getresuid(ruid, euid, suid); in safe_getresuid() 390 "getresuid(%p, %p, %p) failed", ruid, euid, suid); in safe_getresuid() 393 "Invalid getresuid(%p, %p, %p) return value %d", ruid, in safe_getresuid()
|
/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/libfuse/lib/ |
D | mount_util.c | 65 uid_t ruid; in mtab_needs_update() local 71 ruid = getuid(); in mtab_needs_update() 72 if (ruid != 0) in mtab_needs_update() 77 if (ruid != 0) in mtab_needs_update() 78 setreuid(ruid, -1); in mtab_needs_update()
|
/third_party/ltp/include/ |
D | tst_uid.h | 32 #define tst_check_resuid(cstr, ruid, euid, suid) \ argument 33 tst_check_resuid_(__FILE__, __LINE__, (cstr), (ruid), (euid), (suid))
|
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)) 129 uid_t ruid, uid_t euid, uid_t suid); 130 #define SAFE_SETRESUID(ruid, euid, suid) \ argument 131 safe_setresuid(__FILE__, __LINE__, (ruid), (euid), (suid)) 133 #define SAFE_GETRESUID(ruid, euid, suid) \ argument 134 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/testcases/kernel/syscalls/sched_setscheduler/ |
D | sched_setscheduler03.c | 107 uid_t ruid, euid, suid; in setup() local 139 SAFE_GETRESUID(&ruid, &euid, &suid); in setup()
|
/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/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 | 202 pe->event_data.id.e.euid, pe->event_data.id.r.ruid); in process_event()
|
/third_party/rust/crates/nix/src/ |
D | unistd.rs | 2790 pub fn setresuid(ruid: Uid, euid: Uid, suid: Uid) -> Result<()> { 2791 let res = unsafe { libc::setresuid(ruid.into(), euid.into(), suid.into()) }; 2856 let mut ruid = libc::uid_t::max_value(); localVariable 2859 let res = unsafe { libc::getresuid(&mut ruid, &mut euid, &mut suid) }; 2861 … Errno::result(res).map(|_| ResUid{ real: Uid(ruid), effective: Uid(euid), saved: Uid(suid) })
|
/third_party/python/Modules/clinic/ |
D | posixmodule.c.h | 3758 os_setreuid_impl(PyObject *module, uid_t ruid, uid_t euid); 3764 uid_t ruid; in os_setreuid() local 3770 if (!_Py_Uid_Converter(args[0], &ruid)) { in os_setreuid() 3776 return_value = os_setreuid_impl(module, ruid, euid); in os_setreuid() 7335 os_setresuid_impl(PyObject *module, uid_t ruid, uid_t euid, uid_t suid); 7341 uid_t ruid; in os_setresuid() local 7348 if (!_Py_Uid_Converter(args[0], &ruid)) { in os_setresuid() 7357 return_value = os_setresuid_impl(module, ruid, euid, suid); in os_setresuid()
|
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/ |
D | mod.rs | 1778 pub fn getresuid(ruid: *mut ::uid_t, euid: *mut ::uid_t, suid: *mut ::uid_t) -> ::c_int; in getresuid() 1827 pub fn setresuid(ruid: ::uid_t, euid: ::uid_t, suid: ::uid_t) -> ::c_int; in setresuid()
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/ |
D | mod.rs | 1515 pub fn getresuid(ruid: *mut ::uid_t, euid: *mut ::uid_t, suid: *mut ::uid_t) -> ::c_int; in getresuid() 1660 pub fn setresuid(ruid: ::uid_t, euid: ::uid_t, suid: ::uid_t) -> ::c_int; in setresuid()
|
/third_party/rust/crates/libc/src/unix/linux_like/ |
D | mod.rs | 1764 pub fn getresuid(ruid: *mut ::uid_t, euid: *mut ::uid_t, suid: *mut ::uid_t) -> ::c_int; in getresuid() 1775 pub fn setresuid(ruid: ::uid_t, euid: ::uid_t, suid: ::uid_t) -> ::c_int; in setresuid()
|
/third_party/python/Modules/ |
D | posixmodule.c | 8087 os_setreuid_impl(PyObject *module, uid_t ruid, uid_t euid) in os_setreuid_impl() argument 8090 if (setreuid(ruid, euid) < 0) { in os_setreuid_impl() 12622 os_setresuid_impl(PyObject *module, uid_t ruid, uid_t euid, uid_t suid) in os_setresuid_impl() argument 12625 if (setresuid(ruid, euid, suid) < 0) in os_setresuid_impl() 12666 uid_t ruid, euid, suid; in os_getresuid_impl() local 12667 if (getresuid(&ruid, &euid, &suid) < 0) in os_getresuid_impl() 12669 return Py_BuildValue("(NNN)", _PyLong_FromUid(ruid), in os_getresuid_impl()
|