Home
last modified time | relevance | path

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

123

/external/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()
/external/openssh/openbsd-compat/
Dbsd-setres_id.c64 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/
Dcompat_16.h37 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()
Dcompat_tst_16.h34 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/
Dlibminijail_test.cpp54 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/
Dmount03_setuid_test.c35 static uid_t ruid; variable
43 status = setreuid(ruid, 0); in do_setuid()
59 ruid = getuid(); in main()
/external/minijail/examples/
Ddrop_privs.cpp27 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/
Dtst_safe_macros.c110 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()
Dsafe_macros.c322 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/
Dlinux_syscall_hooks.h77 #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/
Dsched_setscheduler03.c122 uid_t ruid, euid, suid; in setup() local
154 SAFE_GETRESUID(&ruid, &euid, &suid); in setup()
/external/ltp/include/
Dtst_safe_macros.h124 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))
Dsafe_macros_fn.h88 uid_t *ruid, uid_t *euid, uid_t *suid);
/external/kernel-headers/original/uapi/linux/
Dcn_proc.h89 __u32 ruid; /* task uid */ member
/external/syzkaller/sys/freebsd/
Dsys.txt70 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/
Dlinux_syscall_support.h3201 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/
Dsafe_macros.h85 #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/
Dsanitizer_common_syscalls.inc296 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/
Dzsyscall_openbsd_386.go1243 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))
Dzsyscall_dragonfly_amd64.go1227 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))
Dzsyscall_openbsd_amd64.go1243 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))
Dzsyscall_openbsd_arm.go1243 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))
Dzsyscall_freebsd_amd64.go1621 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))
Dzsyscall_freebsd_arm.go1621 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/
Dpec_listener.c206 pe->event_data.id.e.euid, pe->event_data.id.r.ruid); in process_event()

123