Home
last modified time | relevance | path

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

1234

/external/openssh/
Dplatform.c84 return (getuid() == 0 || geteuid() == 0); in platform_privileged_uidswap()
102 if (getuid() == 0 || geteuid() == 0) in platform_setusercontext()
107 if (getuid() == 0 || geteuid() == 0) in platform_setusercontext()
116 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext()
124 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext()
Duidswap.c144 uid_t old_uid = getuid(); in permanently_drop_suid()
170 if (getuid() != uid || geteuid() != uid) { in permanently_drop_suid()
172 __func__, (u_int)getuid(), (u_int)geteuid(), (u_int)uid); in permanently_drop_suid()
203 setuid(getuid()); in restore_uid()
219 uid_t old_uid = getuid(); in permanently_set_uid()
314 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) { in permanently_set_uid()
316 __func__, (u_int)getuid(), (u_int)geteuid(), in permanently_set_uid()
Dsftp-server-main.c44 if ((user_pw = getpwuid(getuid())) == NULL) { in main()
46 (u_long)getuid()); in main()
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()
Dauth1.c432 if (!use_privsep && getuid() != 0 && authctxt->pw && in do_authentication()
433 authctxt->pw->pw_uid != getuid()) in do_authentication()
Dssh-add.c458 if ((pw = getpwuid(getuid())) == NULL) { in main()
460 (u_int)getuid()); in main()
Dreadpass.c75 permanently_drop_suid(getuid()); in ssh_askpass()
/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/dropbear/
Dsvr-agentfwd.c151 uid = getuid(); in agentcleanup()
214 uid = getuid(); in bindagent()
/external/valgrind/main/memcheck/tests/linux/
Dcapget.c17 if (getuid() == 0) in main()
Dsigqueue.c31 si->si_uid = getuid(); in main()
/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/openssl/crypto/rand/
Drand_unix.c186 curr_uid = getuid(); in RAND_poll()
401 l=getuid(); in RAND_poll()
/external/ppp/pppd/plugins/
Dpassprompt.c57 seteuid(getuid()); in promptpass()
/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/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/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()
/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()

1234