Home
last modified time | relevance | path

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

12345678910>>...12

/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()
Duidswap.c74 saved_euid = geteuid(); in temporarily_use_uid()
86 if (geteuid() != 0) { in temporarily_use_uid()
133 if (setuid(geteuid()) < 0) in temporarily_use_uid()
134 debug("setuid %u: %.100s", (u_int) geteuid(), strerror(errno)); in temporarily_use_uid()
169 if (getuid() != uid || geteuid() != uid) { in permanently_drop_suid()
171 __func__, (u_int)getuid(), (u_int)geteuid(), (u_int)uid); in permanently_drop_suid()
292 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) { in permanently_set_uid()
294 __func__, (u_int)getuid(), (u_int)geteuid(), in permanently_set_uid()
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()
/external/libbrillo/brillo/
Dfile_utils_unittest.cc106 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid() + 1, getegid())); in TEST_F()
112 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid() + 1)); in TEST_F()
117 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid())); in TEST_F()
123 EXPECT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F()
129 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid())); in TEST_F()
130 EXPECT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/
D6-1.c67 pw->pw_name, geteuid(), getuid()); in set_nonroot()
82 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.c137 UID16_CHECK(geteuid(), "fchown", cleanup) in fchown_verify()
140 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.c141 pe_uid = geteuid(); in setup()
144 ps_uid = geteuid(); in setup()
/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()
Duserns03.c86 uid = geteuid(); in child_fn2()
175 parentuid = geteuid(); in main()
/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/lchown/
Dlchown03.c121 UID16_CHECK(geteuid(), "lchown", cleanup) in lchown_verify()
124 TEST(LCHOWN(cleanup, test->pathname, geteuid(), getegid())); in lchown_verify()
/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/curl/lib/
Dnetrc.c80 if(!getpwuid_r(geteuid(), &pw, pwbuf, sizeof(pwbuf), &pw_res) in Curl_parsenetrc()
91 pw= getpwuid(geteuid()); in Curl_parsenetrc()
/external/toybox/toys/posix/
Dcpio.c152 if (!err && !geteuid() && !(toys.optflags & FLAG_no_preserve_owner)) in cpio_main()
178 if (!geteuid() && !(toys.optflags & FLAG_no_preserve_owner)) { in cpio_main()
193 if (!S_ISREG(mode) && !S_ISLNK(mode) && !geteuid() in cpio_main()
/external/strace/tests/
Dsetfsuid32.c9 # define GETUGID geteuid()
Dsetuid32.c9 # define GETUGID geteuid()
/external/strace/tests-mx32/
Dsetfsuid32.c9 # define GETUGID geteuid()
Dsetuid32.c9 # define GETUGID geteuid()
Dsetresuid32.c9 # define GETUGID geteuid()
/external/strace/tests-m32/
Dsetfsuid32.c9 # define GETUGID geteuid()

12345678910>>...12