Home
last modified time | relevance | path

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

123

/external/ipsec-tools/src/racoon/
Dsafefile.c56 if (getuid() != geteuid()) {
66 me = getuid();
/external/openssl/crypto/
Duid.c82 if (getuid() != geteuid()) return 1; in OPENSSL_issetugid()
/external/e2fsprogs/include/nonunix/
Dpwd.h5 __inline __uid_t getuid(void){return 0;} in getuid() function
/external/openssl/crypto/rand/
Drand_unix.c162 curr_uid = getuid(); in RAND_poll()
361 l=getuid(); in RAND_poll()
/external/dropbear/
Dsvr-agentfwd.c151 uid = getuid(); in agentcleanup()
214 uid = getuid(); in bindagent()
/external/iproute2/misc/
Drtacct.c421 if (cred.uid == getuid() || cred.uid == 0) in verify_forging()
508 sprintf(sun.sun_path+1, "rtacct%d", getuid()); in main()
540 sprintf(hist_name, "/tmp/.rtacct.u%d", getuid()); in main()
561 if (stb.st_nlink != 1 || stb.st_uid != getuid()) { in main()
Dnstat.c430 if (cred.uid == getuid() || cred.uid == 0) in verify_forging()
497 sprintf(sun.sun_path+1, "nstat%d", getuid()); in main()
531 sprintf(hist_name, "/tmp/.nstat.u%d", getuid()); in main()
557 if (stb.st_nlink != 1 || stb.st_uid != getuid()) { in main()
Difstat.c545 if (cred.uid == getuid() || cred.uid == 0) in verify_forging()
647 sprintf(sun.sun_path+1, "ifstat%d", getuid()); in main()
682 sprintf(hist_name, "%s/.ifstat.u%d", P_tmpdir, getuid()); in main()
707 if (stb.st_nlink != 1 || stb.st_uid != getuid()) { in main()
/external/valgrind/main/memcheck/tests/linux/
Dsigqueue.c31 si->si_uid = getuid(); in main()
/external/tcpdump/
Dtcpdump.c818 if (getuid() == 0 || geteuid() == 0) { in main()
827 if (getuid() == 0 || geteuid() == 0) { in main()
848 if (setgid(getgid()) != 0 || setuid(getuid()) != 0 ) in main()
897 if (setgid(getgid()) != 0 || setuid(getuid()) != 0) in main()
1004 if (getuid() == 0 || geteuid() == 0) { in main()
/external/ppp/pppd/plugins/
Dpassprompt.c57 seteuid(getuid()); in promptpass()
/external/e2fsprogs/lib/ss/
Dpager.c46 if ((getuid() != geteuid()) || (getgid() != getegid())) in ss_safe_getenv()
/external/dbus/tools/
Ddbus-launch-x11.c76 struct passwd *user = getpwuid (getuid()); in get_homedir()
248 user = getpwuid (getuid ()); in init_x_atoms()
/external/bluetooth/bluez/tools/
Dparser.y158 if ((getuid() == 0) || (access(file, R_OK) < 0)) in rfcomm_read_config()
/external/dbus/bus/
Dactivation-helper.c203 uid = getuid(); in check_permissions()
414 if (getuid() != geteuid()) in get_correct_parser()
/external/chromium/chrome/browser/
Dbrowser_main_gtk.cc126 if (stat("/proc/self/exe", &st) == 0 && st.st_uid == getuid()) in SetupSandbox()
Dprocess_info_snapshot_mac_unittest.cc61 uid_t uid = getuid(); in TEST_F()
/external/bluetooth/glib/glib/
Dgutils.c1631 if (!pw || (pw->pw_uid != getuid ())) { in g_get_any_init_do()
1633 error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw); in g_get_any_init_do()
1636 error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw); in g_get_any_init_do()
1642 error = getpwuid_r (getuid (), &pwd, buffer, bufsize); in g_get_any_init_do()
1647 if (!pw || (pw->pw_uid != getuid ())) { in g_get_any_init_do()
1649 pw = getpwuid_r (getuid (), &pwd, buffer, bufsize); in g_get_any_init_do()
1652 pw = getpwuid_r (getuid (), &pwd, buffer, bufsize); in g_get_any_init_do()
1668 (gulong) getuid ()); in g_get_any_init_do()
1688 pw = getpwuid (getuid ()); in g_get_any_init_do()
/external/oprofile/libpopt/
Dpopt.c428 rc = setresuid(getuid(), getuid(),-1); in execCommand()
439 rc = setuid(getuid()); in execCommand()
444 rc = setreuid(getuid(), getuid()); in execCommand()
/external/e2fsprogs/lib/blkid/
Dcache.c39 if ((getuid() != geteuid()) || (getgid() != getegid())) in safe_getenv()
/external/chromium/third_party/libevent/
Devutil.c259 if (getuid() != geteuid()) in evutil_issetugid()
/external/oprofile/opjitconv/
Dopjitconv.c229 if (fchown(fd, getuid(), getgid()) != 0) { in copy_elffile()
388 if (seteuid(getuid()) != 0) { in process_jit_dumpfile()
/external/e2fsprogs/intl/
Ddcigettext.c398 # define getuid() 0
404 # define geteuid() getuid()
414 if (getuid () != geteuid () || getgid () != getegid ()) \
/external/strace/
Dstrace.c325 if (getuid() != 0 || geteuid() != 0) {
340 run_uid = getuid();
345 setreuid(geteuid(), getuid());
395 setreuid(geteuid(), getuid());
701 setreuid(geteuid(), getuid());
705 setreuid(geteuid(), getuid());
/external/ipsec-tools/src/libipsec/
Dtest-policy.c234 if (getuid() != 0) in test2()

123