Home
last modified time | relevance | path

Searched refs:pw_uid (Results 1 – 22 of 22) sorted by relevance

/external/dropbear/
Dsvr-auth.c146 !(svr_opts.norootpass && ses.authstate.pw->pw_uid == 0) ) { in recv_msg_userauth_request()
159 !(svr_opts.norootpass && ses.authstate.pw->pw_uid == 0) ) { in recv_msg_userauth_request()
232 if (svr_opts.norootlogin && ses.authstate.pw->pw_uid == 0) { in checkusername()
280 TRACE(("uid = %d", ses.authstate.pw->pw_uid)) in checkusername()
363 if (ses.authstate.pw->pw_uid == 0) { in send_msg_userauth_success()
Dsshpty.c383 if (st.st_uid != pw->pw_uid || st.st_gid != gid) { in pty_setowner()
384 if (chown(tty_name, pw->pw_uid, gid) < 0) { in pty_setowner()
386 (st.st_uid == pw->pw_uid || st.st_uid == 0)) { in pty_setowner()
389 tty_name, (unsigned int)pw->pw_uid, (unsigned int)gid, in pty_setowner()
393 tty_name, (unsigned int)pw->pw_uid, (unsigned int)gid, in pty_setowner()
Dsvr-agentfwd.c154 (seteuid(ses.authstate.pw->pw_uid)) < 0) { in agentcleanup()
217 (seteuid(ses.authstate.pw->pw_uid)) < 0) { in bindagent()
Dsvr-authpubkey.c323 if (filestat.st_uid != ses.authstate.pw->pw_uid in checkfileperm()
Dsvr-chansession.c916 if (setuid(ses.authstate.pw->pw_uid) < 0) { in execchild()
927 if (getuid() != ses.authstate.pw->pw_uid) { in execchild()
Dloginrec.c282 li->uid = pw->pw_uid; in login_init_entry()
/external/e2fsprogs/include/nonunix/
Dpwd.h14 __uid_t pw_uid; member
/external/dnsmasq/src/
Dlog.c97 if (log_to_file && ent_pw && ent_pw->pw_uid != 0 && in log_start()
98 fchown(log_fd, ent_pw->pw_uid, -1) != 0) in log_start()
Ddnsmasq.c220 script_uid = ent_pw->pw_uid; in main()
250 if (ent_pw && ent_pw->pw_uid != 0) in main()
387 if (ent_pw && ent_pw->pw_uid != 0) in main()
428 if (setuid(ent_pw->pw_uid) == -1) in main()
/external/iptables/extensions/
Dlibipt_owner.c69 ownerinfo->uid = pwd->pw_uid; in parse()
Dlibip6t_owner.c68 ownerinfo->uid = pwd->pw_uid; in parse()
/external/tcpdump/
Dtcpdump.c393 setgid(pw->pw_gid) != 0 || setuid(pw->pw_uid) != 0) { in droproot()
396 (unsigned long)pw->pw_uid, in droproot()
/external/ipsec-tools/src/racoon/
Dcfparse.y298 lcconf->uid = pw->pw_uid;
2556 adminsock_owner = pw->pw_uid;
Disakmp_xauth.c1207 if (pw->pw_uid == 0)
/external/e2fsprogs/misc/
Dtune2fs.c738 resuid = pw->pw_uid; in parse_tune2fs_options()
/external/bluetooth/glib/glib/
Dgutils.c1631 if (!pw || (pw->pw_uid != getuid ())) { in g_get_any_init_do()
1647 if (!pw || (pw->pw_uid != getuid ())) { in g_get_any_init_do()
/external/dnsmasq/contrib/lease-access/
Dlease.access.patch50 if (setuid(ent_pw->pw_uid) == -1)
/external/dbus/dbus/
Ddbus-sysdeps-unix.c1194 info->uid = p->pw_uid; in fill_user_info_from_passwd()
/external/ppp/pppd/
Dauth.c1636 (void)lseek(fd, (off_t)(pw->pw_uid * sizeof(ll)), SEEK_SET);
/external/strace/
Dstrace.c336 run_uid = pent->pw_uid;
/external/qemu/
Dvl.c6292 if (setuid(pwd->pw_uid) < 0) { in main()
6293 fprintf(stderr, "Failed to setuid(%d)\n", pwd->pw_uid); in main()
Dvl-android.c6310 if (setuid(pwd->pw_uid) < 0) { in main()
6311 fprintf(stderr, "Failed to setuid(%d)\n", pwd->pw_uid); in main()