/third_party/rust/crates/rustix/tests/process/ |
D | id.rs | 23 assert_eq!(process::geteuid(), process::geteuid()); in test_geteuid() 25 assert_eq!(process::geteuid().as_raw(), libc::geteuid()); in test_geteuid() 26 assert_eq!(process::geteuid().is_root(), libc::geteuid() == 0); in test_geteuid()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
D | setreuid.c | 28 uid_t ceuid = geteuid(); in setreuid_0100() 38 uid_t euid = geteuid(); in setreuid_0100() 58 uid_t ceuid = geteuid(); in setreuid_0200() 68 uid_t euid = geteuid(); in setreuid_0200()
|
D | geteuid.c | 28 uid_t euid = geteuid(); in geteuid_0100()
|
/third_party/node/test/parallel/ |
D | test-process-euid-egid.js | 7 assert.strictEqual(process.geteuid, undefined); 40 process.geteuid(); 67 const olduid = process.geteuid(); 69 const newuid = process.geteuid();
|
/third_party/musl/libc-test/src/functional/ |
D | stat.c | 46 TEST(st.st_uid==geteuid(), "%d vs %d\n", (int)st.st_uid, (int)geteuid()); in main() 47 TEST(st.st_gid==getegid(), "%d vs %d\n", (int)st.st_uid, (int)geteuid()); in main()
|
D | ipc_sem.c | 59 EQ(semid_ds.sem_perm.cuid, geteuid(), "got %d, want %d"); in inc() 60 EQ(semid_ds.sem_perm.uid, geteuid(), "got %d, want %d"); in inc()
|
D | ipc_shm.c | 53 EQ(shmid_ds.shm_perm.cuid, geteuid(), "got %d, want %d"); in set() 54 EQ(shmid_ds.shm_perm.uid, geteuid(), "got %d, want %d"); in set()
|
D | ipc_msg.c | 56 EQ(qid_ds.msg_perm.cuid, geteuid(), "got %d, want %d"); in snd() 57 EQ(qid_ds.msg_perm.uid, geteuid(), "got %d, want %d"); in snd()
|
/third_party/ntfs-3g/libfuse-lite/ |
D | fusermount.c | 104 if (!geteuid()) { in drop_privs() 108 if (setresuid(-1, new_uid, geteuid()) < 0) { in drop_privs() 112 if (geteuid() != new_uid){ in drop_privs() 123 if (geteuid()) { in restore_privs() 135 if (geteuid() != suid) { in restore_privs() 637 if (geteuid() == 0) { in mount_fuse() 685 if (geteuid() == 0) in fusermount()
|
D | mount_util.c | 74 setuid(geteuid()); in fuse_mnt_add_mount() 127 setuid(geteuid()); in fuse_mnt_umount() 318 if (setuid(geteuid())) in fuse_mnt_add_mount() 368 if (setuid(geteuid())) in fuse_mnt_umount()
|
/third_party/ltp/testcases/kernel/syscalls/setfsgid/ |
D | setfsgid02.c | 47 tst_res(TFAIL, "EUID %d: setfsgid() returned %ld", geteuid(), TST_RET); in run() 50 geteuid(), TST_RET); in run()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
D | 6-1.c | 66 pw->pw_name, geteuid(), getuid()); in set_nonroot() 81 if (geteuid() == 0) { in main()
|
/third_party/ltp/testcases/kernel/containers/userns/ |
D | userns02.c | 26 uid = geteuid(); in child_fn1() 50 parentuid = geteuid(); in run()
|
D | userns07.c | 46 parentuid = geteuid(); in child_fn1() 74 parentuid = geteuid(); in run()
|
D | userns06.c | 52 uid = geteuid(); in child_fn2() 76 parentuid = geteuid(); in run()
|
D | userns03.c | 60 uid = geteuid(); in child_fn2() 130 parentuid = geteuid(); in run()
|
/third_party/ltp/testcases/kernel/syscalls/getresuid/ |
D | getresuid01.c | 140 pe_uid = geteuid(); in setup() 143 ps_uid = geteuid(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/lchown/ |
D | lchown03.c | 118 UID16_CHECK(geteuid(), "lchown", cleanup) in lchown_verify() 121 TEST(LCHOWN(cleanup, test->pathname, geteuid(), getegid())); in lchown_verify()
|
/third_party/toybox/toys/posix/ |
D | cpio.c | 150 if (!err && !geteuid() && !(toys.optflags & FLAG_no_preserve_owner)) in cpio_main() 176 if (!geteuid() && !(toys.optflags & FLAG_no_preserve_owner)) { in cpio_main() 191 if (!S_ISREG(mode) && !S_ISLNK(mode) && !geteuid() in cpio_main()
|
/third_party/libfuse/lib/ |
D | mount_util.c | 114 if(setuid(geteuid()) == -1) { in add_mount() 173 if(setuid(geteuid()) == -1) { in exec_umount() 245 if(setuid(geteuid()) == -1) { in remove_mount()
|
/third_party/python/Lib/test/ |
D | test_spwd.py | 9 @unittest.skipUnless(hasattr(os, 'geteuid') and os.geteuid() == 0, 60 @unittest.skipUnless(hasattr(os, 'geteuid') and os.geteuid() != 0,
|
/third_party/ltp/testcases/kernel/syscalls/statx/ |
D | statx01.c | 111 if (geteuid() == buff.stx_uid) in test_normal_file() 115 buff.stx_uid, geteuid()); in test_normal_file()
|
/third_party/rust/crates/rustix/src/process/ |
D | id.rs | 210 pub fn geteuid() -> Uid { in geteuid() function 211 backend::process::syscalls::geteuid() in geteuid()
|
/third_party/curl/lib/ |
D | netrc.c | 297 if(!getpwuid_r(geteuid(), &pw, pwbuf, sizeof(pwbuf), &pw_res) in Curl_parsenetrc() 305 pw = getpwuid(geteuid()); in Curl_parsenetrc()
|
/third_party/musl/src/unistd/ |
D | geteuid.c | 4 uid_t geteuid(void) in geteuid() function
|