/external/toybox/toys/posix/ |
D | id.c | 98 uid = euid = pw->pw_uid; in do_id() 105 if (toys.optflags&FLAG_u) s_or_u(pw->pw_name, pw->pw_uid, 1); in do_id() 111 showid("uid=", pw->pw_uid, pw->pw_name); in do_id() 117 showid(" euid=", pw->pw_uid, pw->pw_name); in do_id()
|
D | renice.c | 34 if (p) id = p->pw_uid;
|
D | chgrp.c | 90 if (*own) TT.owner = xgetpwnamid(TT.owner_name = own)->pw_uid; in chgrp_main()
|
/external/selinux/policycoreutils/sandbox/ |
D | seunshare.c | 394 if (cmdbuf && spawn_command(cmdbuf, pwd->pw_uid) != 0) { in cleanup_tmpdir() 408 if (cmdbuf && spawn_command(cmdbuf, pwd->pw_uid) != 0) rc++; in cleanup_tmpdir() 419 if ((uid_t)setfsuid(pwd->pw_uid) != 0) { in cleanup_tmpdir() 444 if ((uid_t)setfsuid(pwd->pw_uid) != 0) in create_tmpdir() 465 if ((uid_t)setfsuid(0) != pwd->pw_uid) in create_tmpdir() 521 if ((uid_t)setfsuid(pwd->pw_uid) != 0) in create_tmpdir() 529 if ((uid_t)setfsuid(0) != pwd->pw_uid) in create_tmpdir() 532 if (cmdbuf && spawn_command(cmdbuf, pwd->pw_uid) != 0) { in create_tmpdir()
|
/external/avahi/avahi-autoipd/ |
D | main.c | 952 … %lu) and group '"AVAHI_AUTOIPD_GROUP"' (GID %lu).", (unsigned long) pw->pw_uid, (unsigned long) g… in drop_privs() 970 chown(AVAHI_IPDATA_DIR, pw->pw_uid, gr->gr_gid); in drop_privs() 977 if (!S_ISDIR(st.st_mode) || st.st_uid != pw->pw_uid || st.st_gid != gr->gr_gid) { in drop_privs() 1025 r = setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid); in drop_privs() 1027 if ((r = setuid(pw->pw_uid)) >= 0) in drop_privs() 1028 r = seteuid(pw->pw_uid); in drop_privs() 1030 r = setreuid(pw->pw_uid, pw->pw_uid); in drop_privs()
|
/external/toybox/toys/pending/ |
D | useradd.c | 90 pwd.pw_uid = TT.uid; 120 (long)pwd.pw_uid, (long)pwd.pw_gid, pwd.pw_gecos, pwd.pw_dir,
|
/external/autotest/client/cros/cellular/pseudomodem/ |
D | pseudomodem_context.py | 346 logging.debug('Setting UID to %d', pwd_data.pw_uid) 348 os.setuid(pwd_data.pw_uid) 351 pwd_data.pw_uid, str(e))
|
/external/avahi/avahi-daemon/ |
D | main.c | 1354 …R"' (UID %lu) and group '"AVAHI_GROUP"' (GID %lu).", (unsigned long) pw->pw_uid, (unsigned long) g… in drop_root() 1378 r = setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid); in drop_root() 1380 if ((r = setuid(pw->pw_uid)) >= 0) in drop_root() 1381 r = seteuid(pw->pw_uid); in drop_root() 1383 r = setreuid(pw->pw_uid, pw->pw_uid); in drop_root() 1439 chown(AVAHI_DAEMON_RUNTIME_DIR, pw->pw_uid, gr->gr_gid); in make_runtime_dir() 1446 if (!S_ISDIR(st.st_mode) || st.st_uid != pw->pw_uid || st.st_gid != gr->gr_gid) { in make_runtime_dir()
|
/external/dbus/bus/ |
D | activation-helper.c | 186 if (pw->pw_uid != uid) in check_permissions() 323 if (setuid (pw->pw_uid) < 0) in switch_user() 326 "cannot setuid user %i", pw->pw_uid); in switch_user()
|
/external/curl/lib/ |
D | setup-vms.h | 176 vms_passwd_cache.pw_uid = my_passwd->pw_uid; in vms_getpwuid() 177 vms_passwd_cache.pw_gid = my_passwd->pw_uid; in vms_getpwuid()
|
/external/e2fsprogs/include/nonunix/ |
D | pwd.h | 14 __uid_t pw_uid; member
|
/external/autotest/client/site_tests/security_SysLogPermissions/ |
D | security_SysLogPermissions.py | 18 syslog_uid = pwd.getpwnam('syslog').pw_uid
|
/external/libbrillo/brillo/ |
D | userdb_utils.cc | 32 *uid = pwd->pw_uid; in GetUserInfo()
|
/external/ltrace/ |
D | execute_program.c | 57 run_uid = pent->pw_uid; in change_uid()
|
/external/dnsmasq/src/ |
D | log.c | 97 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()
|
D | dnsmasq.c | 220 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() 431 if (setuid(ent_pw->pw_uid) == -1) in main()
|
/external/tlsdate/src/ |
D | util-plan9.c | 86 uid = pw->pw_uid; in drop_privs_to()
|
/external/iptables/extensions/ |
D | libxt_owner.c | 148 id = pwd->pw_uid; in owner_mt_parse_v0() 195 id = pwd->pw_uid; in owner_mt6_parse_v0() 253 from = to = pwd->pw_uid; in owner_mt_parse()
|
/external/libcap/progs/old/ |
D | sucap.c | 77 uid = pw->pw_uid; in main()
|
/external/toybox/toys/other/ |
D | makedevs.c | 81 uid = *user ? xgetpwnamid(user)->pw_uid : getuid();
|
D | login.c | 128 if (pwd->pw_uid && !access("/etc/nologin", R_OK)) { in login_main()
|
/external/autotest/client/site_tests/platform_TLSDate/ |
D | platform_TLSDate.py | 23 self._tlsdate_uid = pwd.getpwnam('tlsdate').pw_uid
|
/external/toybox/toys/lsb/ |
D | passwd.c | 124 if (myuid && (myuid != pw->pw_uid)) error_exit("Not root"); in passwd_main()
|
/external/libcap/progs/ |
D | capsh.c | 440 status = setuid(pwd->pw_uid); in main() 443 pwd->pw_uid, user, strerror(errno)); in main()
|
/external/mdnsresponder/mDNSPosix/ |
D | PosixDaemon.c | 216 setuid(pw->pw_uid); in main()
|