/external/openssh/ |
D | platform.c | 84 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()
|
D | uidswap.c | 144 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()
|
D | sftp-server-main.c | 44 if ((user_pw = getpwuid(getuid())) == NULL) { in main() 46 (u_long)getuid()); in main()
|
D | logintest.c | 100 pw = getpwuid(getuid()); in testAPI() 145 t1 = login_get_lastlog_time(getuid()); in testAPI() 185 t2 = login_get_lastlog_time(getuid()); in testAPI()
|
D | auth1.c | 432 if (!use_privsep && getuid() != 0 && authctxt->pw && in do_authentication() 433 authctxt->pw->pw_uid != getuid()) in do_authentication()
|
D | ssh-add.c | 458 if ((pw = getpwuid(getuid())) == NULL) { in main() 460 (u_int)getuid()); in main()
|
D | readpass.c | 75 permanently_drop_suid(getuid()); in ssh_askpass()
|
/external/ipsec-tools/src/racoon/ |
D | safefile.c | 56 if (getuid() != geteuid()) { 66 me = getuid();
|
/external/openssl/crypto/ |
D | uid.c | 82 if (getuid() != geteuid()) return 1; in OPENSSL_issetugid()
|
/external/e2fsprogs/include/nonunix/ |
D | pwd.h | 5 __inline __uid_t getuid(void){return 0;} in getuid() function
|
/external/dropbear/ |
D | svr-agentfwd.c | 151 uid = getuid(); in agentcleanup() 214 uid = getuid(); in bindagent()
|
/external/valgrind/main/memcheck/tests/linux/ |
D | capget.c | 17 if (getuid() == 0) in main()
|
D | sigqueue.c | 31 si->si_uid = getuid(); in main()
|
/external/iproute2/misc/ |
D | rtacct.c | 421 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()
|
D | nstat.c | 430 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()
|
D | ifstat.c | 545 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/ |
D | rand_unix.c | 186 curr_uid = getuid(); in RAND_poll() 401 l=getuid(); in RAND_poll()
|
/external/ppp/pppd/plugins/ |
D | passprompt.c | 57 seteuid(getuid()); in promptpass()
|
/external/tcpdump/ |
D | tcpdump.c | 818 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/ |
D | pager.c | 46 if ((getuid() != geteuid()) || (getgid() != getegid())) in ss_safe_getenv()
|
/external/dbus/tools/ |
D | dbus-launch-x11.c | 76 struct passwd *user = getpwuid (getuid()); in get_homedir() 248 user = getpwuid (getuid ()); in init_x_atoms()
|
/external/dbus/bus/ |
D | activation-helper.c | 203 uid = getuid(); in check_permissions() 414 if (getuid() != geteuid()) in get_correct_parser()
|
/external/chromium/chrome/browser/ |
D | browser_main_gtk.cc | 126 if (stat("/proc/self/exe", &st) == 0 && st.st_uid == getuid()) in SetupSandbox()
|
/external/oprofile/libpopt/ |
D | popt.c | 428 rc = setresuid(getuid(), getuid(),-1); in execCommand() 439 rc = setuid(getuid()); in execCommand() 444 rc = setreuid(getuid(), getuid()); in execCommand()
|
/external/e2fsprogs/lib/blkid/ |
D | cache.c | 39 if ((getuid() != geteuid()) || (getgid() != getegid())) in safe_getenv()
|