/bionic/libc/bionic/ |
seteuid.cpp | 31 int seteuid(uid_t euid) { 32 return setresuid(-1, euid,-1);
|
/system/extras/tests/bionic/libc/common/ |
test_seteuid.c | 34 uid_t ruid, euid; local 39 euid = geteuid(); 40 printf("Start: ruid=%d euid=%d\n", ruid, euid); 46 euid = geteuid(); 47 printf("After set: ruid=%d euid=%d\n", ruid, euid); 53 euid = geteuid(); 54 printf("After restore: ruid=%d euid=%d\n", ruid, euid); [all...] |
/external/libcap-ng/libcap-ng-0.7/utils/ |
pscap.c | 69 int pid, ppid, uid = -1, euid = -1; local 128 euid = 0; 142 &id, &euid); 157 if (euid == 0) { 161 } else if (euid != uid) { 163 p = getpwuid(euid); 164 uid = euid;
|
captest.c | 57 uid_t uid, euid, suid; local 67 getresuid(&uid, &euid, &suid); 70 if ((uid != euid && uid != 0) || 75 getresuid(&uid, &euid, &suid); 86 printf("User credentials uid:%d euid:%d suid:%d\n", uid, euid, suid); 90 if (uid != euid || gid != egid)
|
netcap.c | 63 int fd, len, euid = -1; local 114 euid = 0; 126 &id, &euid); 196 node.uid = euid;
|
/external/chromium_org/chrome/browser/ |
process_info_snapshot_mac_unittest.cc | 38 EXPECT_EQ(0, static_cast<int64>(proc_info.euid)); 65 uid_t euid = geteuid(); local 80 EXPECT_EQ(euid, proc_info.euid); 100 EXPECT_EQ(euid, proc_info.euid); // under reasonable circumstances. 142 EXPECT_EQ(proc_info.euid, 0u);
|
process_info_snapshot.h | 52 uid_t euid; member in struct:ProcessInfoSnapshot::ProcInfoEntry
|
/bionic/libc/kernel/uapi/linux/ |
cn_proc.h | 74 __u32 euid; member in union:proc_event::__anon356::id_proc_event::__anon359
|
/development/ndk/platforms/android-L/include/linux/ |
cn_proc.h | 74 __u32 euid; member in union:proc_event::__anon1968::id_proc_event::__anon1971
|
/external/chromium_org/sandbox/linux/services/ |
credentials.cc | 97 uid_t ruid, euid, suid; local 99 PCHECK(getresuid(&ruid, &euid, &suid) == 0); 101 const bool uids_are_equal = (ruid == euid) && (ruid == suid); 104 if (resuid) *resuid = euid;
|
/external/kernel-headers/original/uapi/linux/ |
cn_proc.h | 92 __u32 euid; member in union:proc_event::__anon6629::id_proc_event::__anon6632
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/sysroot/usr/include/linux/ |
cn_proc.h | 88 __u32 euid; member in union:proc_event::__anon25710::id_proc_event::__anon25713
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/ |
cn_proc.h | 88 __u32 euid; member in union:proc_event::__anon27446::id_proc_event::__anon27449
|
/prebuilts/ndk/9/platforms/android-21/arch-arm/usr/include/linux/ |
cn_proc.h | 74 __u32 euid; member in union:proc_event::__anon55112::id_proc_event::__anon55115
|
/prebuilts/ndk/9/platforms/android-21/arch-arm64/usr/include/linux/ |
cn_proc.h | 74 __u32 euid; member in union:proc_event::__anon55879::id_proc_event::__anon55882
|
/prebuilts/ndk/9/platforms/android-21/arch-mips/usr/include/linux/ |
cn_proc.h | 74 __u32 euid; member in union:proc_event::__anon56658::id_proc_event::__anon56661
|
/prebuilts/ndk/9/platforms/android-21/arch-mips64/usr/include/linux/ |
cn_proc.h | 74 __u32 euid; member in union:proc_event::__anon57436::id_proc_event::__anon57439
|
/prebuilts/ndk/9/platforms/android-21/arch-x86/usr/include/linux/ |
cn_proc.h | 74 __u32 euid; member in union:proc_event::__anon58212::id_proc_event::__anon58215
|
/prebuilts/ndk/9/platforms/android-21/arch-x86_64/usr/include/linux/ |
cn_proc.h | 74 __u32 euid; member in union:proc_event::__anon58989::id_proc_event::__anon58992
|
/external/chromium_org/sandbox/linux/bpf_dsl/ |
bpf_dsl_unittest.cc | 52 static int setresuid(uid_t ruid, uid_t euid, uid_t suid) { 53 return Syscall::Call(__NR_setresuid, ruid, euid, suid); 137 const Arg<uid_t> ruid(0), euid(1), suid(2); 138 return If(ruid == 0 || euid == 0 || suid == 0, Error(EPERM)) 139 .ElseIf(ruid == 1 && euid == 1 && suid == 1, Error(EAGAIN))
|
/frameworks/base/core/jni/ |
com_android_internal_os_ZygoteInit.cpp | 37 * private static native boolean setreuid(int ruid, int euid) 40 JNIEnv* env, jobject clazz, jint ruid, jint euid) 42 if (setreuid(ruid, euid) < 0) {
|
/external/e2fsprogs/misc/ |
uuidd.c | 64 uid_t euid; local 83 euid = geteuid(); 84 if (setreuid(euid, euid) < 0)
|
/external/chromium_org/sandbox/linux/suid/ |
sandbox.c | 337 uid_t ruid, euid, suid; local 338 if (getresuid(&ruid, &euid, &suid)) {
|
/external/compiler-rt/include/sanitizer/ |
linux_syscall_hooks.h | 77 #define __sanitizer_syscall_pre_getresuid(ruid, euid, suid) \ 78 __sanitizer_syscall_pre_impl_getresuid((long)(ruid), (long)(euid), \ 80 #define __sanitizer_syscall_post_getresuid(res, ruid, euid, suid) \ 81 __sanitizer_syscall_post_impl_getresuid(res, (long)(ruid), (long)(euid), \ 113 #define __sanitizer_syscall_pre_setreuid(ruid, euid) \ 114 __sanitizer_syscall_pre_impl_setreuid((long)(ruid), (long)(euid)) 115 #define __sanitizer_syscall_post_setreuid(res, ruid, euid) \ 116 __sanitizer_syscall_post_impl_setreuid(res, (long)(ruid), (long)(euid)) 121 #define __sanitizer_syscall_pre_setresuid(ruid, euid, suid) \ 122 __sanitizer_syscall_pre_impl_setresuid((long)(ruid), (long)(euid), \ [all...] |
/bionic/libc/include/ |
unistd.h | 90 extern int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
|