Lines Matching refs:pentry
139 struct passwd *pentry; in run_file() local
173 pentry = getpwuid(uid); in run_file()
174 if (pentry == NULL) in run_file()
181 pam_err = pam_start(atrun, pentry->pw_name, &pamc, &pamh); in run_file()
189 pentry->pw_name, (unsigned long)uid, in run_file()
319 if (setusercontext(NULL, pentry, uid, LOGIN_SETALL & in run_file()
323 if (initgroups(pentry->pw_name,pentry->pw_gid)) in run_file()
326 if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0) in run_file()
329 if (setlogin(pentry->pw_name)) in run_file()
336 if (chdir(pentry->pw_dir)) in run_file()
366 if (setusercontext(NULL, pentry, uid, LOGIN_SETALL) != 0) in run_file()
369 if (initgroups(pentry->pw_name,pentry->pw_gid)) in run_file()
372 if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0) in run_file()
375 if (setlogin(pentry->pw_name)) in run_file()
382 if (chdir(pentry->pw_dir)) in run_file()