Home
last modified time | relevance | path

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

1234567

/external/libchrome/sandbox/linux/services/
Dnamespace_utils_unittest.cc40 const uid_t uid = getuid(); in SANDBOX_TEST()
54 RAW_CHECK(getuid() != uid); in SANDBOX_TEST()
56 RAW_CHECK(getuid() == uid); in SANDBOX_TEST()
/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()
Dexeccap.c37 if (getuid() && !geteuid()) { in main()
/external/selinux/policycoreutils/setsebool/
Dsetsebool.c109 if (getuid() == 0) { in selinux_set_boolean_list()
151 if (getuid() == 0) { in semanage_set_boolean_list()
279 pwd = getpwuid(getuid()); in setbool()
293 name, value_ptr, getuid()); in setbool()
/external/ipsec-tools/src/racoon/
Dsafefile.c56 if (getuid() != geteuid()) {
66 me = getuid();
/external/selinux/libselinux/utils/
Dtogglesebool.c81 struct passwd *pwd = getpwuid(getuid()); in main()
90 argv[i], getuid()); in main()
/external/ltrace/
Dexecute_program.c48 if (getuid() != 0 || geteuid() != 0) { in change_uid()
65 run_uid = getuid(); in change_uid()
/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.
/external/selinux/policycoreutils/run_init/
Drun_init.c251 uid = getuid();
253 uid = getuid();
/external/iproute2/misc/
Drtacct.c420 if (cred.uid == getuid() || cred.uid == 0) in verify_forging()
507 sprintf(sun.sun_path+1, "rtacct%d", getuid()); in main()
539 sprintf(hist_name, "/tmp/.rtacct.u%d", getuid()); in main()
560 if (stb.st_nlink != 1 || stb.st_uid != getuid()) { in main()
Dnstat.c480 if (cred.uid == getuid() || cred.uid == 0) in verify_forging()
578 sprintf(sun.sun_path+1, "nstat%d", getuid()); in main()
612 sprintf(hist_name, "/tmp/.nstat.u%d", getuid()); in main()
638 if (stb.st_nlink != 1 || stb.st_uid != getuid()) { in main()
/external/toybox/toys/pending/
Dcrontab.c239 fchown(fdout, getuid(), geteuid()); in update_crontab()
343 if (getuid()) error_exit("must be privileged to use -u"); in crontab_main()
345 } else pwd = xgetpwuid(getuid()); in crontab_main()
/external/e2fsprogs/include/nonunix/
Dpwd.h5 __inline __uid_t getuid(void){return 0;} in getuid() function
/external/strace/tests/
Drt_sigqueueinfo.c50 pid, pid, getuid(), value.sival_int, value.sival_ptr); in main()
/external/valgrind/memcheck/tests/linux/
Dcapget.c17 if (getuid() == 0) in main()
Dsigqueue.c31 si->si_uid = getuid(); in main()
/external/strace/test/
Dmany_looping_threads.c26 getuid(); in sub_thd()
/external/libedit/src/
Dfilecomplete.c101 if (getpwuid_r(getuid(), &pwres, pwbuf, sizeof(pwbuf), in fn_tilde_expand()
105 pass = getpwuid_r(getuid(), &pwres, pwbuf, sizeof(pwbuf)); in fn_tilde_expand()
107 pass = getpwuid(getuid()); in fn_tilde_expand()
/external/bison/lib/
Dspawni.c69 # define getuid __getuid macro
233 && (local_seteuid (getuid ()) != 0 in __spawni()
/external/autotest/cli/
Dchange_protection_level.py18 user = pwd.getpwuid(os.getuid())[0]
/external/tlsdate/
Dtlsdate-seccomp-amd64.policy28 getuid: 1
/external/libchrome/sandbox/linux/suid/
Dprocess_util_linux.c50 if (getuid() != statbuf.st_uid) { in AdjustOOMScore()
/external/mesa3d/src/gallium/targets/gbm/
Dgbm.c40 if (geteuid() == getuid()) in get_library_search_path()
/external/selinux/policycoreutils/newrole/
Dnewrole.c427 uid = getuid(); in extract_pw_data()
429 uid = getuid(); in extract_pw_data()
545 uid_t uid = getuid(); in drop_capabilities()
587 uid_t uid = getuid(); in drop_capabilities()
629 uid_t uid = getuid(); in transition_to_caller_uid()
/external/libdrm/tests/
Dsetversion.c45 if (getuid() != 0) { in main()

1234567