Home
last modified time | relevance | path

Searched refs:getuid (Results 1 – 25 of 400) sorted by relevance

12345678910>>...16

/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()
Dsftp-server-main.c47 if ((user_pw = getpwuid(getuid())) == NULL) { in main()
49 (u_long)getuid()); in main()
Duidswap.c180 if (setuid(getuid()) == -1) in restore_uid()
199 uid_t old_uid = getuid(); in permanently_set_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()
Dlogintest.c100 pw = getpwuid(getuid()); in testAPI()
145 t1 = login_get_lastlog_time(getuid()); in testAPI()
185 t2 = login_get_lastlog_time(getuid()); in testAPI()
/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()
93 printf("DROP: %d %d\n", getuid(), geteuid()); in main()
97 printf("DESTROY: %d %d\n", getuid(), geteuid()); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
D26-2.c73 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main()
98 seteuid(getuid()); in main()
105 seteuid(getuid()); in main()
110 seteuid(getuid()); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/
D9-1.c49 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main()
72 seteuid(getuid()); in main()
77 seteuid(getuid()); in main()
D8-1.c63 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main()
89 seteuid(getuid()); in main()
/external/libcap/progs/old/
Dsucap.c61 if (getuid() && !geteuid()) { in main()
133 if (!getuid() && setgroups(0, 0)) { in main()
149 printf("[debug] uid:%d, real uid:%d\n", geteuid(), getuid()); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/
D5-1.c33 if (getuid() == 0) { in main()
44 if (getuid() == 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
D3-1.c56 pw->pw_name, (int)getuid(), (int)geteuid()); in set_nonroot()
69 if (getuid() == 0) { in main()
D12-1.c53 pw->pw_name, (int)geteuid(), (int)getuid()); in set_nonroot()
66 if (getuid() == 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
D20-1.c55 pw->pw_name, (int)geteuid(), (int)getuid()); in set_nonroot()
67 if (getuid() == 0) { in main()
/external/ipsec-tools/src/racoon/
Dsafefile.c56 if (getuid() != geteuid()) {
66 me = getuid();
/external/libbrillo/brillo/files/
Dfile_util.h37 uid_t uid = getuid(),
56 uid_t uid = getuid(),
/external/selinux/policycoreutils/setsebool/
Dsetsebool.c104 if (getuid() == 0) { in selinux_set_boolean_list()
147 if (getuid() == 0) { in semanage_set_boolean_list()
276 pwd = getpwuid(getuid()); in setbool()
290 name, value_ptr, getuid()); in setbool()
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/
Dares-test-ns.cc40 while (getuid() != 0 && count > 0) { in EnterContainer()
44 if (getuid() != 0) { in EnterContainer()
45 std::cerr << "Child in user namespace has uid " << getuid() << std::endl; in EnterContainer()
131 contentss << "0 " << getuid() << " 1" << std::endl; in RunInContainer()
/external/ltp/testcases/kernel/syscalls/getuid/
Dgetuid03.c58 uid = getuid(); in main()
64 UID16_CHECK(pwent->pw_uid, getuid, cleanup); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
D23-6.c50 pw->pw_name, (int)geteuid(), (int)getuid()); in set_nonroot()
67 if (getuid() == 0) { in main()
/external/libcups/cups/
Dglobals.c280 if ((geteuid() != getuid() && getuid()) || getegid() != getgid()) in cups_globals_alloc()
282 if (!getuid()) in cups_globals_alloc()
329 if ((pw = getpwuid(getuid())) != NULL) in cups_globals_alloc()
/external/selinux/libselinux/utils/
Dtogglesebool.c81 struct passwd *pwd = getpwuid(getuid()); in main()
90 argv[i], getuid()); in main()
/external/python/cpython2/Lib/
Dnetrc.py96 if prop.st_uid != os.getuid():
102 user = pwd.getpwuid(os.getuid())[0]
104 user = 'uid %s' % os.getuid()
/external/python/cpython3/Lib/
Dnetrc.py89 if prop.st_uid != os.getuid():
96 user = pwd.getpwuid(os.getuid())[0]
98 user = 'uid %s' % os.getuid()
/external/toybox/toys/lsb/
Dsu.c59 loggit(LOG_NOTICE, "%s->%s", getusername(getuid()), name);
62 if (getuid()) {
/external/autotest/client/tests/tracing_microbenchmark/
Dcontrol10 sys_getuid and makes 100,000 calls to getuid with tracing on and off to measure
23 calls: Set the number of calls to make to getuid.

12345678910>>...16