/external/openssh/ |
D | platform.c | 89 return (getuid() == 0 || geteuid() == 0); in platform_privileged_uidswap() 111 if (!options.use_pam && (getuid() == 0 || geteuid() == 0)) in platform_setusercontext() 116 if (getuid() == 0 || geteuid() == 0) in platform_setusercontext() 125 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext() 133 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext()
|
D | audit.c | 126 (int)geteuid()); in audit_connection_from() 136 debug("audit event euid %d user %s event %d (%s)", geteuid(), in audit_event() 152 debug("audit session open euid %d user %s tty name %s", geteuid(), in audit_session_open() 168 debug("audit session close euid %d user %s tty name %s", geteuid(), in audit_session_close() 180 debug("audit run command euid %d user %s command '%.200s'", geteuid(), in audit_run_command()
|
D | uidswap.c | 80 saved_euid = geteuid(); in temporarily_use_uid() 92 if (geteuid() != 0) { in temporarily_use_uid() 142 if (setuid(geteuid()) == -1) in temporarily_use_uid() 143 debug("setuid %u: %.100s", (u_int) geteuid(), strerror(errno)); in temporarily_use_uid() 272 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) { in permanently_set_uid() 274 __func__, (u_int)getuid(), (u_int)geteuid(), in permanently_set_uid()
|
/external/mtools/ |
D | mtools.c | 85 printf("INIT: %d %d\n", getuid(), geteuid()); in main() 87 printf("DROP: %d %d\n", getuid(), geteuid()); in main() 89 printf("RECLAIM: %d %d\n", getuid(), geteuid()); in main() 90 euid = geteuid(); in main() 93 printf("DROP: %d %d\n", getuid(), geteuid()); in main() 97 printf("DESTROY: %d %d\n", getuid(), geteuid()); in main()
|
D | privileges.c | 69 fprintf(stderr,"%s euid=%d ruid=%d\n", message, geteuid(), getuid()); in print_privs() 162 euid = geteuid(); in init_privs()
|
/external/libbrillo/brillo/ |
D | file_utils_test.cc | 125 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid() + 1, getegid())); in TEST_F() 131 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid() + 1)); in TEST_F() 136 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid())); in TEST_F() 142 EXPECT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F() 148 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid())); in TEST_F() 149 EXPECT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F() 156 ASSERT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F() 163 ASSERT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F() 177 ASSERT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F()
|
/external/rust/crates/tokio/tests/ |
D | uds_cred.rs | 8 use libc::geteuid; 25 let uid = unsafe { geteuid() }; in test_socket_pair()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
D | fchown01.c | 66 UID16_CHECK(geteuid(), "fchown", cleanup) in main() 69 TEST(FCHOWN(cleanup, fd, geteuid(), getegid())); in main()
|
D | fchown04.c | 131 UID16_CHECK(geteuid(), "fchown", cleanup) in fchown_verify() 134 TEST(FCHOWN(cleanup, *test_cases[i].fd, geteuid(), getegid())); in fchown_verify()
|
/external/ltp/testcases/kernel/syscalls/geteuid/ |
D | geteuid02.c | 50 uid = geteuid(); in main() 56 UID16_CHECK(pwent->pw_uid, geteuid, cleanup); in main()
|
/external/ltp/testcases/kernel/syscalls/getresuid/ |
D | getresuid01.c | 140 pe_uid = geteuid(); in setup() 143 ps_uid = geteuid(); in setup()
|
/external/llvm-project/lldb/unittests/Host/linux/ |
D | HostTest.cpp | 44 EXPECT_EQ(geteuid(), Info.GetEffectiveUserID()); in TEST_F() 50 EXPECT_EQ(geteuid(), Info.GetUserID()); in TEST_F()
|
/external/ltp/testcases/kernel/containers/userns/ |
D | userns02.c | 48 uid = geteuid(); in child_fn1() 90 parentuid = geteuid(); in main()
|
D | userns07.c | 67 parentuid = geteuid(); in child_fn1() 101 parentuid = geteuid(); in test_max_nest()
|
D | userns06.c | 76 uid = geteuid(); in child_fn2() 122 parentuid = geteuid(); in main()
|
/external/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()
|
/external/libcap/progs/old/ |
D | sucap.c | 61 if (getuid() && !geteuid()) { in main() 149 printf("[debug] uid:%d, real uid:%d\n", geteuid(), getuid()); in main()
|
/external/ltp/testcases/kernel/syscalls/setreuid/ |
D | setreuid04.c | 135 if ((getuid() != ru->pw_uid) || (geteuid() != eu->pw_uid)) { in uid_verify() 137 when, getuid(), geteuid()); in uid_verify()
|
D | setreuid02.c | 136 if ((getuid() != ru->pw_uid) || (geteuid() != eu->pw_uid)) { in uid_verify() 138 when, getuid(), geteuid()); in uid_verify()
|
/external/ltp/testcases/kernel/syscalls/statx/ |
D | statx01.c | 68 if (geteuid() == buff.stx_uid) in test_normal_file() 72 buff.stx_uid, geteuid()); in test_normal_file()
|
/external/llvm-project/lldb/source/Host/posix/ |
D | HostInfoPosix.cpp | 120 uint32_t HostInfoPosix::GetEffectiveUserID() { return geteuid(); } in GetEffectiveUserID() 127 if (llvm::Optional<PasswdEntry> password = GetPassword(::geteuid())) in GetDefaultShell()
|
/external/python/cpython3/Lib/test/ |
D | test_spwd.py | 8 @unittest.skipUnless(hasattr(os, 'geteuid') and os.geteuid() == 0, 59 @unittest.skipUnless(hasattr(os, 'geteuid') and os.geteuid() != 0,
|
/external/libfuse/lib/ |
D | mount_util.c | 111 if(setuid(geteuid()) == -1) { in add_mount() 170 if(setuid(geteuid()) == -1) { in exec_umount() 242 if(setuid(geteuid()) == -1) { in remove_mount()
|
/external/strace/tests-m32/ |
D | setfsuid32.c | 9 # define GETUGID geteuid()
|