Lines Matching defs:pentry
136 struct passwd *pentry;
170 pentry = getpwuid(uid);
171 if (pentry == NULL)
178 pam_err = pam_start(atrun, pentry->pw_name, &pamc, &pamh);
186 pentry->pw_name, (unsigned long)uid,
316 if (setusercontext(NULL, pentry, uid, LOGIN_SETALL &
320 if (initgroups(pentry->pw_name,pentry->pw_gid))
323 if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0)
326 if (setlogin(pentry->pw_name))
333 if (chdir(pentry->pw_dir))
363 if (setusercontext(NULL, pentry, uid, LOGIN_SETALL) != 0)
366 if (initgroups(pentry->pw_name,pentry->pw_gid))
369 if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0)
372 if (setlogin(pentry->pw_name))
379 if (chdir(pentry->pw_dir))