Home
last modified time | relevance | path

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

12345678910>>...15

/external/openssh/
Dplatform.c89 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()
Daudit.c126 (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()
Duidswap.c80 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/
Dmtools.c85 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()
Dprivileges.c69 fprintf(stderr,"%s euid=%d ruid=%d\n", message, geteuid(), getuid()); in print_privs()
162 euid = geteuid(); in init_privs()
/external/libbrillo/brillo/
Dfile_utils_test.cc125 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/
Duds_cred.rs8 use libc::geteuid;
25 let uid = unsafe { geteuid() }; in test_socket_pair()
/external/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()
/external/ltp/testcases/kernel/syscalls/fchown/
Dfchown01.c66 UID16_CHECK(geteuid(), "fchown", cleanup) in main()
69 TEST(FCHOWN(cleanup, fd, geteuid(), getegid())); in main()
Dfchown04.c131 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/
Dgeteuid02.c50 uid = geteuid(); in main()
56 UID16_CHECK(pwent->pw_uid, geteuid, cleanup); in main()
/external/ltp/testcases/kernel/syscalls/getresuid/
Dgetresuid01.c140 pe_uid = geteuid(); in setup()
143 ps_uid = geteuid(); in setup()
/external/llvm-project/lldb/unittests/Host/linux/
DHostTest.cpp44 EXPECT_EQ(geteuid(), Info.GetEffectiveUserID()); in TEST_F()
50 EXPECT_EQ(geteuid(), Info.GetUserID()); in TEST_F()
/external/ltp/testcases/kernel/containers/userns/
Duserns02.c48 uid = geteuid(); in child_fn1()
90 parentuid = geteuid(); in main()
Duserns07.c67 parentuid = geteuid(); in child_fn1()
101 parentuid = geteuid(); in test_max_nest()
Duserns06.c76 uid = geteuid(); in child_fn2()
122 parentuid = geteuid(); in main()
/external/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()
/external/libcap/progs/old/
Dsucap.c61 if (getuid() && !geteuid()) { in main()
149 printf("[debug] uid:%d, real uid:%d\n", geteuid(), getuid()); in main()
/external/ltp/testcases/kernel/syscalls/setreuid/
Dsetreuid04.c135 if ((getuid() != ru->pw_uid) || (geteuid() != eu->pw_uid)) { in uid_verify()
137 when, getuid(), geteuid()); in uid_verify()
Dsetreuid02.c136 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/
Dstatx01.c68 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/
DHostInfoPosix.cpp120 uint32_t HostInfoPosix::GetEffectiveUserID() { return geteuid(); } in GetEffectiveUserID()
127 if (llvm::Optional<PasswdEntry> password = GetPassword(::geteuid())) in GetDefaultShell()
/external/python/cpython3/Lib/test/
Dtest_spwd.py8 @unittest.skipUnless(hasattr(os, 'geteuid') and os.geteuid() == 0,
59 @unittest.skipUnless(hasattr(os, 'geteuid') and os.geteuid() != 0,
/external/libfuse/lib/
Dmount_util.c111 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/
Dsetfsuid32.c9 # define GETUGID geteuid()

12345678910>>...15