Home
last modified time | relevance | path

Searched refs:geteuid (Results 1 – 25 of 205) sorted by relevance

123456789

/third_party/rust/crates/rustix/tests/process/
Did.rs23 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/
Dsetreuid.c28 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()
Dgeteuid.c28 uid_t euid = geteuid(); in geteuid_0100()
/third_party/node/test/parallel/
Dtest-process-euid-egid.js7 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/
Dstat.c46 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()
Dipc_sem.c59 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()
Dipc_shm.c53 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()
Dipc_msg.c56 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/
Dfusermount.c104 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()
Dmount_util.c74 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/
Dsetfsgid02.c47 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/
D6-1.c66 pw->pw_name, geteuid(), getuid()); in set_nonroot()
81 if (geteuid() == 0) { in main()
/third_party/ltp/testcases/kernel/containers/userns/
Duserns02.c26 uid = geteuid(); in child_fn1()
50 parentuid = geteuid(); in run()
Duserns07.c46 parentuid = geteuid(); in child_fn1()
74 parentuid = geteuid(); in run()
Duserns06.c52 uid = geteuid(); in child_fn2()
76 parentuid = geteuid(); in run()
Duserns03.c60 uid = geteuid(); in child_fn2()
130 parentuid = geteuid(); in run()
/third_party/ltp/testcases/kernel/syscalls/getresuid/
Dgetresuid01.c140 pe_uid = geteuid(); in setup()
143 ps_uid = geteuid(); in setup()
/third_party/ltp/testcases/kernel/syscalls/lchown/
Dlchown03.c118 UID16_CHECK(geteuid(), "lchown", cleanup) in lchown_verify()
121 TEST(LCHOWN(cleanup, test->pathname, geteuid(), getegid())); in lchown_verify()
/third_party/toybox/toys/posix/
Dcpio.c150 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/
Dmount_util.c114 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/
Dtest_spwd.py9 @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/
Dstatx01.c111 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/
Did.rs210 pub fn geteuid() -> Uid { in geteuid() function
211 backend::process::syscalls::geteuid() in geteuid()
/third_party/curl/lib/
Dnetrc.c297 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/
Dgeteuid.c4 uid_t geteuid(void) in geteuid() function

123456789