/external/openssh/openbsd-compat/ |
D | bsd-setres_id.c | 66 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/ |
D | libminijail_test.cpp | 53 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/ |
D | syscall_wrappers.cc | 100 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()
|
D | syscall_wrappers_unittest.cc | 67 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()
|
D | credentials.cc | 45 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()
|
D | syscall_wrappers.h | 63 SANDBOX_EXPORT int sys_getresuid(uid_t* ruid, uid_t* euid, uid_t* suid);
|
/external/minijail/examples/ |
D | drop_privs.cpp | 26 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/ |
D | sandbox.c | 338 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/ |
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/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/kernel-headers/original/uapi/linux/ |
D | cn_proc.h | 88 __u32 ruid; /* task uid */ member
|
/external/libchrome/sandbox/linux/bpf_dsl/ |
D | bpf_dsl_unittest.cc | 200 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/ |
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/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) {} 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 …]
|
D | sanitizer_common_interceptors.inc | 4315 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/ |
D | dbus-sysdeps-unix.c | 4163 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/ |
D | scalar.stderr.exp | 724 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/ |
D | syswrap-linux.c | 609 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()
|
D | syswrap-generic.c | 4292 PRE_REG_READ2(long, "setreuid", vki_uid_t, ruid, vki_uid_t, euid); in PRE()
|
/external/valgrind/memcheck/tests/solaris/ |
D | scalar.stderr.exp | 4167 Syscall param setreuid(ruid) contains uninitialised byte(s)
|