Lines Matching refs:pw_uid
83 (u_int)pw->pw_uid, (u_int)pw->pw_gid, in temporarily_use_uid()
115 if (user_groupslen == -1 || user_groups_uid != pw->pw_uid) { in temporarily_use_uid()
132 user_groups_uid = pw->pw_uid; in temporarily_use_uid()
148 if (seteuid(pw->pw_uid) == -1) in temporarily_use_uid()
149 fatal("seteuid %u: %.100s", (u_int)pw->pw_uid, in temporarily_use_uid()
211 debug("permanently_set_uid: %u/%u", (u_int)pw->pw_uid, in permanently_set_uid()
215 if (pw->pw_uid == AID_SHELL) { in permanently_set_uid()
247 if (setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid) == -1) in permanently_set_uid()
248 fatal("setresuid %u: %.100s", (u_int)pw->pw_uid, strerror(errno)); in permanently_set_uid()
252 if (old_gid != pw->pw_gid && pw->pw_uid != 0 && in permanently_set_uid()
266 if (old_uid != pw->pw_uid && in permanently_set_uid()
272 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) { in permanently_set_uid()
275 (u_int)pw->pw_uid); in permanently_set_uid()
279 if (pw->pw_uid == AID_SHELL) { in permanently_set_uid()