Home
last modified time | relevance | path

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

/external/openssh/openbsd-compat/
Dbsd-setres_id.c66 setresuid(uid_t ruid, uid_t euid, uid_t suid) in setresuid() argument
70 if (ruid != suid) { in setresuid()
75 if (setreuid(ruid, euid) < 0) { in setresuid()
77 error("setreuid %u: %.100s", ruid, strerror(errno)); in setresuid()
91 if (setuid(ruid) < 0) { in setresuid()
93 error("setuid %u: %.100s", ruid, strerror(errno)); in setresuid()
/external/minijail/test/
Dlibminijail_test.cpp53 uid_t ruid = getuid(); in check_ugid() local
54 if (ruid != expected_id) { in check_ugid()
55 LOG(ERROR) << "rUID " << ruid << " is not " << expected_id; in check_ugid()
60 LOG(ERROR) << "rGID " << ruid << " is not " << expected_id; in check_ugid()
97 uid_t ruid, euid, suid; in log_resugid() local
99 getresuid(&ruid, &euid, &suid); in log_resugid()
102 LOG(INFO) << "ruid " << ruid << " euid " << euid << " suid " << suid; in log_resugid()
/external/libchrome/sandbox/linux/services/
Dsyscall_wrappers.cc100 int sys_getresuid(uid_t* ruid, uid_t* euid, uid_t* suid) { in sys_getresuid() argument
105 res = syscall(__NR_getresuid32, ruid, euid, suid); in sys_getresuid()
107 res = syscall(__NR_getresuid, ruid, euid, suid); in sys_getresuid()
110 if (ruid) MSAN_UNPOISON(ruid, sizeof(*ruid)); in sys_getresuid()
Dsyscall_wrappers_unittest.cc67 uid_t ruid, euid, suid; in TEST() local
69 ASSERT_EQ(0, getresuid(&ruid, &euid, &suid)); in TEST()
71 EXPECT_EQ(ruid, sys_ruid); in TEST()
Dcredentials.cc45 uid_t ruid, euid, suid; in GetRESIds() local
47 PCHECK(sys_getresuid(&ruid, &euid, &suid) == 0); in GetRESIds()
49 const bool uids_are_equal = (ruid == euid) && (ruid == suid); in GetRESIds()
Dsyscall_wrappers.h63 SANDBOX_EXPORT int sys_getresuid(uid_t* ruid, uid_t* euid, uid_t* suid);
/external/minijail/examples/
Ddrop_privs.cpp26 uid_t ruid, euid, suid; in log_resugid() local
28 getresuid(&ruid, &euid, &suid); in log_resugid()
31 LOG(INFO) << "ruid " << ruid << " euid " << euid << " suid " << suid; in log_resugid()
/external/libchrome/sandbox/linux/suid/
Dsandbox.c338 uid_t ruid, euid, suid; in DropRoot() local
339 if (getresuid(&ruid, &euid, &suid)) { in DropRoot()
344 if (setresuid(ruid, ruid, ruid)) { in DropRoot()
/external/v8/third_party/llvm-build/Release+Asserts/lib/clang/3.9.0/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/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/kernel-headers/original/uapi/linux/
Dcn_proc.h88 __u32 ruid; /* task uid */ member
/external/libchrome/sandbox/linux/bpf_dsl/
Dbpf_dsl_unittest.cc200 const Arg<uid_t> ruid(0), euid(1), suid(2); in EvaluateSyscall() local
201 return If(AnyOf(ruid == 0, euid == 0, suid == 0), Error(EPERM)) in EvaluateSyscall()
202 .ElseIf(AllOf(ruid == 1, euid == 1, suid == 1), Error(EAGAIN)) in EvaluateSyscall()
/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/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) {}
1475 PRE_SYSCALL(setreuid16)(long ruid, long euid) {}
1477 POST_SYSCALL(setreuid16)(long res, long ruid, long euid) {}
1483 PRE_SYSCALL(setresuid16)(long ruid, long euid, long suid) {}
[all …]
Dsanitizer_common_interceptors.inc4315 INTERCEPTOR(int, getresuid, void *ruid, void *euid, void *suid) {
4317 COMMON_INTERCEPTOR_ENTER(ctx, getresuid, ruid, euid, suid);
4321 int res = REAL(getresuid)(ruid, euid, suid);
4323 if (ruid) COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ruid, uid_t_sz);
/external/dbus/dbus/
Ddbus-sysdeps-unix.c4163 uid_t ruid, euid, suid; /* Real, effective and saved user ID's */ in _dbus_check_setuid() local
4172 if (getresuid (&ruid, &euid, &suid) != 0 || in _dbus_check_setuid()
4176 suid = ruid = getuid (); in _dbus_check_setuid()
4183 is_setuid = (ruid != euid || ruid != suid || in _dbus_check_setuid()
/external/valgrind/memcheck/tests/x86-linux/
Dscalar.stderr.exp724 Syscall param setreuid16(ruid) contains uninitialised byte(s)
1940 Syscall param setresuid16(ruid) contains uninitialised byte(s)
1955 Syscall param getresuid16(ruid) contains uninitialised byte(s)
1967 Syscall param getresuid16(ruid) points to unaddressable byte(s)
2642 Syscall param setreuid(ruid) contains uninitialised byte(s)
2711 Syscall param setresuid(ruid) contains uninitialised byte(s)
2726 Syscall param getresuid(ruid) contains uninitialised byte(s)
2738 Syscall param getresuid(ruid) points to unaddressable byte(s)
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-linux.c609 vki_old_uid_t, ruid, vki_old_uid_t, euid, vki_old_uid_t, suid); in PRE()
616 vki_uid_t, ruid, vki_uid_t, euid, vki_uid_t, suid); in PRE()
623 vki_old_uid_t *, ruid, vki_old_uid_t *, euid, in PRE()
643 vki_uid_t *, ruid, vki_uid_t *, euid, vki_uid_t *, suid); in PRE()
2482 PRE_REG_READ2(long, "setreuid16", vki_old_uid_t, ruid, vki_old_uid_t, euid); in PRE()
Dsyswrap-generic.c4292 PRE_REG_READ2(long, "setreuid", vki_uid_t, ruid, vki_uid_t, euid); in PRE()
/external/valgrind/memcheck/tests/solaris/
Dscalar.stderr.exp4167 Syscall param setreuid(ruid) contains uninitialised byte(s)