Lines Matching refs:pentry
135 struct passwd *pentry;
169 pentry = getpwuid(uid);
170 if (pentry == NULL)
177 pam_err = pam_start(atrun, pentry->pw_name, &pamc, &pamh);
185 pentry->pw_name, (unsigned long)uid,
315 if (setusercontext(NULL, pentry, uid, LOGIN_SETALL &
319 if (initgroups(pentry->pw_name,pentry->pw_gid))
322 if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0)
325 if (setlogin(pentry->pw_name))
332 if (chdir(pentry->pw_dir))
362 if (setusercontext(NULL, pentry, uid, LOGIN_SETALL) != 0)
365 if (initgroups(pentry->pw_name,pentry->pw_gid))
368 if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0)
371 if (setlogin(pentry->pw_name))
378 if (chdir(pentry->pw_dir))