/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 %u: %.100s", ruid, strerror(errno)); in setresuid() 89 if (setuid(ruid) < 0) { in setresuid() 91 error("setuid %u: %.100s", ruid, strerror(errno)); in setresuid()
|
/external/ltp/testcases/kernel/syscalls/utils/ |
D | compat_16.h | 37 int setresuid(uid_t ruid, uid_t euid, uid_t suid); 38 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); 127 int SETREUID(void (cleanup)(void), UID_T ruid, UID_T euid) in SETREUID() argument 129 LTP_CREATE_SYSCALL(setreuid, cleanup, ruid, euid); in SETREUID() 136 int SETRESUID(void (cleanup)(void), UID_T ruid, UID_T euid, UID_T suid) in SETRESUID() argument 138 LTP_CREATE_SYSCALL(setresuid, cleanup, ruid, euid, suid); in SETRESUID() 141 int GETRESUID(void (cleanup)(void), UID_T *ruid, UID_T *euid, UID_T *suid) in GETRESUID() argument 143 LTP_CREATE_SYSCALL(getresuid, cleanup, ruid, euid, suid); in GETRESUID()
|
D | compat_tst_16.h | 34 int setresuid(uid_t ruid, uid_t euid, uid_t suid); 124 int SETREUID(UID_T ruid, UID_T euid) in SETREUID() argument 126 TST_CREATE_SYSCALL(setreuid, ruid, euid); in SETREUID() 133 int SETRESUID(UID_T ruid, UID_T euid, UID_T suid) in SETRESUID() argument 135 TST_CREATE_SYSCALL(setresuid, ruid, euid, suid); 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/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/ltp/lib/ |
D | tst_safe_macros.c | 110 uid_t ruid, uid_t euid) in safe_setreuid() argument 114 rval = setreuid(ruid, euid); in safe_setreuid() 118 (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/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/ltp/testcases/kernel/syscalls/sched_setscheduler/ |
D | sched_setscheduler03.c | 122 uid_t ruid, euid, suid; in setup() local 154 SAFE_GETRESUID(&ruid, &euid, &suid); in setup()
|
/external/ltp/include/ |
D | tst_safe_macros.h | 124 uid_t ruid, uid_t euid); 126 #define SAFE_SETREUID(ruid, euid) \ argument 127 safe_setreuid(__FILE__, __LINE__, (ruid), (euid)) 129 #define SAFE_GETRESUID(ruid, euid, suid) \ argument 130 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/syzkaller/sys/freebsd/ |
D | sys.txt | 70 setreuid(ruid uid, euid uid) 72 setresuid(ruid uid, euid uid, suid uid) 74 getresuid(ruid ptr[out, uid], euid ptr[out, uid], suid ptr[out, uid])
|
/external/google-breakpad/src/third_party/lss/ |
D | linux_syscall_support.h | 3201 LSS_INLINE int LSS_NAME(getresuid32)(uid_t *ruid, in LSS_NAME() 3204 return LSS_NAME(getresuid)(ruid, euid, suid); in LSS_NAME() 3231 LSS_INLINE int LSS_NAME(setresuid32)(uid_t ruid, uid_t euid, uid_t suid) { in LSS_NAME() 3232 return LSS_NAME(setresuid)(ruid, euid, suid); in LSS_NAME() 3322 LSS_INLINE int LSS_NAME(getresuid32)(uid_t *ruid, in LSS_NAME() 3326 if ((rc = LSS_NAME(_getresuid32)(ruid, euid, suid)) < 0 && in LSS_NAME() 3328 if ((ruid == NULL) || (euid == NULL) || (suid == NULL)) { in LSS_NAME() 3332 *ruid = *euid = *suid = 0; in LSS_NAME() 3333 rc = LSS_NAME(getresuid)(ruid, euid, suid); in LSS_NAME() 3379 LSS_INLINE int LSS_NAME(setresuid32)(uid_t ruid, uid_t euid, uid_t suid) { in LSS_NAME() [all …]
|
/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/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/syzkaller/vendor/golang.org/x/sys/unix/ |
D | zsyscall_openbsd_386.go | 1243 func Setreuid(ruid int, euid int) (err error) { 1244 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1263 func Setresuid(ruid int, euid int, suid int) (err error) { 1264 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
|
D | zsyscall_dragonfly_amd64.go | 1227 func Setreuid(ruid int, euid int) (err error) { 1228 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1247 func Setresuid(ruid int, euid int, suid int) (err error) { 1248 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
|
D | zsyscall_openbsd_amd64.go | 1243 func Setreuid(ruid int, euid int) (err error) { 1244 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1263 func Setresuid(ruid int, euid int, suid int) (err error) { 1264 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
|
D | zsyscall_openbsd_arm.go | 1243 func Setreuid(ruid int, euid int) (err error) { 1244 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1263 func Setresuid(ruid int, euid int, suid int) (err error) { 1264 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
|
D | zsyscall_freebsd_amd64.go | 1621 func Setreuid(ruid int, euid int) (err error) { 1622 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1641 func Setresuid(ruid int, euid int, suid int) (err error) { 1642 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
|
D | zsyscall_freebsd_arm.go | 1621 func Setreuid(ruid int, euid int) (err error) { 1622 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1641 func Setresuid(ruid int, euid int, suid int) (err error) { 1642 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
|
/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()
|