Home
last modified time | relevance | path

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

123

/external/toybox/toys/posix/
Did.c98 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()
Drenice.c34 if (p) id = p->pw_uid;
Dchgrp.c90 if (*own) TT.owner = xgetpwnamid(TT.owner_name = own)->pw_uid; in chgrp_main()
/external/selinux/policycoreutils/sandbox/
Dseunshare.c394 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/
Dmain.c952 … %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/
Duseradd.c90 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/
Dpseudomodem_context.py346 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/
Dmain.c1354 …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/
Dactivation-helper.c186 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/
Dsetup-vms.h176 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/
Dpwd.h14 __uid_t pw_uid; member
/external/autotest/client/site_tests/security_SysLogPermissions/
Dsecurity_SysLogPermissions.py18 syslog_uid = pwd.getpwnam('syslog').pw_uid
/external/libbrillo/brillo/
Duserdb_utils.cc32 *uid = pwd->pw_uid; in GetUserInfo()
/external/ltrace/
Dexecute_program.c57 run_uid = pent->pw_uid; in change_uid()
/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()
431 if (setuid(ent_pw->pw_uid) == -1) in main()
/external/tlsdate/src/
Dutil-plan9.c86 uid = pw->pw_uid; in drop_privs_to()
/external/iptables/extensions/
Dlibxt_owner.c148 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/
Dsucap.c77 uid = pw->pw_uid; in main()
/external/toybox/toys/other/
Dmakedevs.c81 uid = *user ? xgetpwnamid(user)->pw_uid : getuid();
Dlogin.c128 if (pwd->pw_uid && !access("/etc/nologin", R_OK)) { in login_main()
/external/autotest/client/site_tests/platform_TLSDate/
Dplatform_TLSDate.py23 self._tlsdate_uid = pwd.getpwnam('tlsdate').pw_uid
/external/toybox/toys/lsb/
Dpasswd.c124 if (myuid && (myuid != pw->pw_uid)) error_exit("Not root"); in passwd_main()
/external/libcap/progs/
Dcapsh.c440 status = setuid(pwd->pw_uid); in main()
443 pwd->pw_uid, user, strerror(errno)); in main()
/external/mdnsresponder/mDNSPosix/
DPosixDaemon.c216 setuid(pw->pw_uid); in main()

123