Lines Matching refs:pentry
134 struct passwd *pentry; in run_file() local
168 pentry = getpwuid(uid); in run_file()
169 if (pentry == NULL) in run_file()
176 pam_err = pam_start(atrun, pentry->pw_name, &pamc, &pamh); in run_file()
184 pentry->pw_name, (unsigned long)uid, in run_file()
314 if (setusercontext(NULL, pentry, uid, LOGIN_SETALL & in run_file()
318 if (initgroups(pentry->pw_name,pentry->pw_gid)) in run_file()
321 if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0) in run_file()
324 if (setlogin(pentry->pw_name)) in run_file()
331 if (chdir(pentry->pw_dir)) in run_file()
361 if (setusercontext(NULL, pentry, uid, LOGIN_SETALL) != 0) in run_file()
364 if (initgroups(pentry->pw_name,pentry->pw_gid)) in run_file()
367 if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0) in run_file()
370 if (setlogin(pentry->pw_name)) in run_file()
377 if (chdir(pentry->pw_dir)) in run_file()