/third_party/openssl/crypto/ |
H A D | uid.c | 52 return getuid() != geteuid() || getgid() != getegid(); in OPENSSL_issetugid()
|
/third_party/rust/crates/nix/test/ |
H A D | test_mount.rs | 22 use nix::unistd::getuid; 211 let uid = getuid(); in setup_namespaces()
|
/third_party/node/lib/internal/bootstrap/ |
H A D | node.js | 217 process.getuid = credentials.getuid;
|
/third_party/node/test/parallel/ |
H A D | test-child-process-spawnsync-validation-errors.js | 7 common.isIBMi ? true : process.getuid() === 0; 60 pass('uid', process.getuid());
|
H A D | test-fs-access.js | 8 if (!common.isWindows && process.getuid() === 0) 57 if (!common.isWindows && process.getuid() === 0) {
|
H A D | test-fs-copyfile-respect-permissions.js | 8 if (!common.isWindows && process.getuid() === 0)
|
/third_party/toybox/toys/posix/ |
H A D | df.c | 124 avail = getuid() ? mt->statvfs.f_favail : mt->statvfs.f_ffree; in show_mt() 129 avail= (block*(getuid()?mt->statvfs.f_bavail:mt->statvfs.f_bfree))/TT.units; in show_mt()
|
/third_party/ltp/testcases/kernel/syscalls/lstat/ |
H A D | lstat01.c | 53 user_id = getuid(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/rename/ |
H A D | rename09.c | 35 orig_uid = getuid(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/syscall/ |
H A D | syscall01.c | 39 u1 = getuid(); in verify_getuid() 47 tst_res(TPASS, "getuid() == syscall(SYS_getuid)"); in verify_getuid() 49 tst_res(TFAIL, "getuid() = %i, syscall(SYS_getuid) = %i", in verify_getuid()
|
/third_party/ltp/testcases/kernel/syscalls/fstat/ |
H A D | fstat02.c | 40 user_id = getuid(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/getresuid/ |
H A D | getresuid01.c | 137 pr_uid = getuid(); in setup()
|
H A D | getresuid03.c | 148 pr_uid = getuid(); in setup()
|
H A D | getresuid02.c | 147 pr_uid = getuid(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/mkdir/ |
H A D | mkdir02.c | 61 SAFE_CHOWN(TESTDIR1, getuid(), free_gid); in setup()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/ |
H A D | 19-1.c | 46 if (getuid() != 0) { in main()
|
H A D | 1-1.c | 35 if (getuid() != 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/ |
H A D | 15-1.c | 69 if (getuid() == 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
H A D | 6-1.c | 66 pw->pw_name, geteuid(), getuid()); in set_nonroot()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
H A D | 32-1.c | 65 if (getuid() == 0) { in main()
|
H A D | 34-1.c | 65 if (getuid() == 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/speculative/ |
H A D | 15-1.c | 69 if (getuid() == 0) { in main()
|
/third_party/libfuse/test/ |
H A D | test_examples.py | 58 if os.getuid() != 0: 168 if os.getuid() == 0: 232 if os.getuid() == 0: 383 if os.getuid() == 0 and intended_user == 'non_root': 385 if os.getuid() != 0 and intended_user == 'root': 397 if os.getuid() == 0: 408 @pytest.mark.skipif(os.getuid() != 0,
|
/third_party/ltp/testcases/kernel/crypto/ |
H A D | af_alg07.c | 53 uid = getuid(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/ |
H A D | semctl04.c | 39 perm.sem_perm.uid = getuid() + 1; in do_child()
|