/external/mtools/ |
D | privileges.c | 75 static uid_t ruid, euid; variable 101 setresuid(ruid, uid, euid); in Setuid() 122 Setuid(ruid); in drop_privs() 134 setuid(ruid); /* this should be enough to get rid of the three in destroy_privs() 136 seteuid(ruid); /* for good measure... just in case we came in destroy_privs() 141 setresuid(ruid, ruid, ruid); in destroy_privs() 157 return ruid; in get_real_uid() 163 ruid = getuid(); in init_privs() 168 if(euid != ruid) { in init_privs() 177 if(euid != ruid) { in init_privs() [all …]
|
/external/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()
|
/external/openssh/openbsd-compat/ |
D | bsd-setres_id.c | 64 setresuid(uid_t ruid, uid_t euid, uid_t suid) in setresuid() argument 68 if (ruid != suid) { in setresuid() 73 if (setreuid(ruid, euid) < 0) { in setresuid() 75 error("setreuid %lu: %.100s", (u_long)ruid, strerror(errno)); in setresuid() 89 if (setuid(ruid) < 0) { in setresuid() 91 error("setuid %lu: %.100s", (u_long)ruid, strerror(errno)); in setresuid()
|
/external/minijail/test/ |
D | libminijail_test.cpp | 54 uid_t ruid = getuid(); in check_ugid() local 55 if (ruid != expected_id) { in check_ugid() 56 LOG(ERROR) << "rUID " << ruid << " is not " << expected_id; in check_ugid() 61 LOG(ERROR) << "rGID " << ruid << " is not " << expected_id; in check_ugid() 98 uid_t ruid, euid, suid; in log_resugid() local 100 getresuid(&ruid, &euid, &suid); in log_resugid() 103 LOG(INFO) << "ruid " << ruid << " euid " << euid << " suid " << suid; in log_resugid()
|
/external/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()
|
/external/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()
|
/external/minijail/examples/ |
D | drop_privs.cpp | 27 uid_t ruid, euid, suid; in log_resugid() local 29 getresuid(&ruid, &euid, &suid); in log_resugid() 32 LOG(INFO) << "ruid " << ruid << " euid " << euid << " suid " << suid; in log_resugid()
|
/external/libfuse/lib/ |
D | mount_util.c | 62 uid_t ruid; in mtab_needs_update() local 68 ruid = getuid(); in mtab_needs_update() 69 if (ruid != 0) in mtab_needs_update() 74 if (ruid != 0) in mtab_needs_update() 75 setreuid(ruid, -1); in mtab_needs_update()
|
/external/ltp/lib/ |
D | tst_safe_macros.c | 99 uid_t ruid, uid_t euid) in safe_setreuid() argument 103 rval = setreuid(ruid, euid); in safe_setreuid() 107 (long)ruid, (long)euid); in safe_setreuid()
|
D | safe_macros.c | 322 uid_t *ruid, uid_t *euid, uid_t *suid) in safe_getresuid() argument 326 rval = getresuid(ruid, euid, suid); in safe_getresuid() 330 file, lineno, ruid, euid, suid); in safe_getresuid()
|
/external/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()
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 77 #define __sanitizer_syscall_pre_getresuid(ruid, euid, suid) \ argument 78 __sanitizer_syscall_pre_impl_getresuid((long)(ruid), (long)(euid), \ 80 #define __sanitizer_syscall_post_getresuid(res, ruid, euid, suid) \ argument 81 __sanitizer_syscall_post_impl_getresuid(res, (long)(ruid), (long)(euid), \ 113 #define __sanitizer_syscall_pre_setreuid(ruid, euid) \ argument 114 __sanitizer_syscall_pre_impl_setreuid((long)(ruid), (long)(euid)) 115 #define __sanitizer_syscall_post_setreuid(res, ruid, euid) \ argument 116 __sanitizer_syscall_post_impl_setreuid(res, (long)(ruid), (long)(euid)) 121 #define __sanitizer_syscall_pre_setresuid(ruid, euid, suid) \ argument 122 __sanitizer_syscall_pre_impl_setresuid((long)(ruid), (long)(euid), \ [all …]
|
/external/llvm-project/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 76 #define __sanitizer_syscall_pre_getresuid(ruid, euid, suid) \ argument 77 __sanitizer_syscall_pre_impl_getresuid((long)(ruid), (long)(euid), \ 79 #define __sanitizer_syscall_post_getresuid(res, ruid, euid, suid) \ argument 80 __sanitizer_syscall_post_impl_getresuid(res, (long)(ruid), (long)(euid), \ 112 #define __sanitizer_syscall_pre_setreuid(ruid, euid) \ argument 113 __sanitizer_syscall_pre_impl_setreuid((long)(ruid), (long)(euid)) 114 #define __sanitizer_syscall_post_setreuid(res, ruid, euid) \ argument 115 __sanitizer_syscall_post_impl_setreuid(res, (long)(ruid), (long)(euid)) 120 #define __sanitizer_syscall_pre_setresuid(ruid, euid, suid) \ argument 121 __sanitizer_syscall_pre_impl_setresuid((long)(ruid), (long)(euid), \ [all …]
|
/external/ltp/include/ |
D | tst_safe_macros.h | 125 uid_t ruid, uid_t euid); 127 #define SAFE_SETREUID(ruid, euid) \ argument 128 safe_setreuid(__FILE__, __LINE__, (ruid), (euid)) 130 #define SAFE_GETRESUID(ruid, euid, suid) \ argument 131 safe_getresuid(__FILE__, __LINE__, NULL, (ruid), (euid), (suid))
|
D | safe_macros_fn.h | 88 uid_t *ruid, uid_t *euid, uid_t *suid);
|
/external/kernel-headers/original/uapi/linux/ |
D | cn_proc.h | 89 __u32 ruid; /* task uid */ member
|
/external/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))
|
/external/google-breakpad/src/third_party/lss/ |
D | linux_syscall_support.h | 3673 LSS_INLINE int LSS_NAME(getresuid32)(uid_t *ruid, in LSS_NAME() 3676 return LSS_NAME(getresuid)(ruid, euid, suid); in LSS_NAME() 3691 LSS_INLINE int LSS_NAME(setresuid32)(uid_t ruid, uid_t euid, uid_t suid) { in LSS_NAME() 3692 return LSS_NAME(setresuid)(ruid, euid, suid); in LSS_NAME() 3788 LSS_INLINE int LSS_NAME(getresuid32)(uid_t *ruid, in LSS_NAME() 3792 if ((rc = LSS_NAME(_getresuid32)(ruid, euid, suid)) < 0 && in LSS_NAME() 3794 if ((ruid == NULL) || (euid == NULL) || (suid == NULL)) { in LSS_NAME() 3798 *ruid = *euid = *suid = 0; in LSS_NAME() 3799 rc = LSS_NAME(getresuid)(ruid, euid, suid); in LSS_NAME() 3845 LSS_INLINE int LSS_NAME(setresuid32)(uid_t ruid, uid_t euid, uid_t suid) { in LSS_NAME() [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 296 PRE_SYSCALL(getresuid)(void *ruid, void *euid, void *suid) {} 298 POST_SYSCALL(getresuid)(long res, void *ruid, void *euid, void *suid) { 300 if (ruid) POST_WRITE(ruid, sizeof(unsigned)); 345 PRE_SYSCALL(setreuid)(long ruid, long euid) {} 347 POST_SYSCALL(setreuid)(long res, long ruid, long euid) {} 353 PRE_SYSCALL(setresuid)(long ruid, long euid, long suid) {} 355 POST_SYSCALL(setresuid)(long res, long ruid, long euid, long suid) {} 1473 PRE_SYSCALL(setreuid16)(long ruid, long euid) {} 1475 POST_SYSCALL(setreuid16)(long res, long ruid, long euid) {} 1481 PRE_SYSCALL(setresuid16)(long ruid, long euid, long suid) {} [all …]
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 295 PRE_SYSCALL(getresuid)(void *ruid, void *euid, void *suid) {} 297 POST_SYSCALL(getresuid)(long res, void *ruid, void *euid, void *suid) { 299 if (ruid) POST_WRITE(ruid, sizeof(unsigned)); 344 PRE_SYSCALL(setreuid)(long ruid, long euid) {} 346 POST_SYSCALL(setreuid)(long res, long ruid, long euid) {} 352 PRE_SYSCALL(setresuid)(long ruid, long euid, long suid) {} 354 POST_SYSCALL(setresuid)(long res, long ruid, long euid, long suid) {} 1472 PRE_SYSCALL(setreuid16)(long ruid, long euid) {} 1474 POST_SYSCALL(setreuid16)(long res, long ruid, long euid) {} 1480 PRE_SYSCALL(setresuid16)(long ruid, long euid, long suid) {} [all …]
|
/external/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()
|
/external/rust/crates/libc/src/unix/linux_like/ |
D | mod.rs | 1552 pub fn setreuid(ruid: ::uid_t, euid: ::uid_t) -> ::c_int; in setreuid() 1554 pub fn getresuid(ruid: *mut ::uid_t, euid: *mut ::uid_t, suid: *mut ::uid_t) -> ::c_int; in getresuid() 1565 pub fn setresuid(ruid: ::uid_t, euid: ::uid_t, suid: ::uid_t) -> ::c_int; in setresuid()
|
/external/python/cpython2/Modules/ |
D | posixmodule.c | 6042 uid_t ruid, euid; in posix_setreuid() local 6044 _Py_Uid_Converter, &ruid, in posix_setreuid() 6047 if (setreuid(ruid, euid) < 0) { in posix_setreuid() 8794 uid_t ruid, euid, suid; in posix_setresuid() local 8796 _Py_Uid_Converter, &ruid, in posix_setresuid() 8800 if (setresuid(ruid, euid, suid) < 0) in posix_setresuid() 8834 uid_t ruid, euid, suid; in posix_getresuid() local 8835 if (getresuid(&ruid, &euid, &suid) < 0) in posix_getresuid() 8837 return Py_BuildValue("(NNN)", _PyInt_FromUid(ruid), in posix_getresuid()
|
/external/python/cpython3/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()
|