mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 12:57:50 +00:00
o Add pam_prep_user function to call pam_setcred() for the target user;
on Linux this often sets resource limits.
This commit is contained in:
parent
705c4c7515
commit
a55e6898e1
@ -281,6 +281,10 @@ runas_setup()
|
||||
#endif
|
||||
|
||||
if (runas_pw->pw_name != NULL) {
|
||||
#ifdef HAVE_PAM
|
||||
pam_prep_user(runas_pw);
|
||||
#endif /* HAVE_PAM */
|
||||
|
||||
#ifdef HAVE_LOGIN_CAP_H
|
||||
if (def_flag(I_USE_LOGINCLASS)) {
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user