pentry
struct passwd *pentry;
pentry = getpwuid(uid);
if (pentry == NULL)
pam_err = pam_start(atrun, pentry->pw_name, &pamc, &pamh);
pentry->pw_name, (unsigned long)uid,
if (setusercontext(NULL, pentry, uid, LOGIN_SETALL &
if (initgroups(pentry->pw_name,pentry->pw_gid))
if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0)
if (setlogin(pentry->pw_name))
if (chdir(pentry->pw_dir))
if (setusercontext(NULL, pentry, uid, LOGIN_SETALL) != 0)
if (initgroups(pentry->pw_name,pentry->pw_gid))
if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0)
if (setlogin(pentry->pw_name))
if (chdir(pentry->pw_dir))
struct pentry *entry;
struct pentry *e1, *entry;
struct pentry *entry;
struct pentry *entry;
struct pentry *entry;
struct pentry *entry;
STAILQ_ENTRY(pentry) entry;
struct pentry *entry;
struct pentry *entry, *best;
STAILQ_HEAD(, pentry) entries;
struct pentry *entry;
return check_for_user(fp, pentry->pw_name);
return !check_for_user(fp, pentry->pw_name);
struct passwd *pentry;
if ((pentry = getpwuid(uid)) == NULL)