mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Add pam_service and pam_login_service sudoers settings to control
the service name passed to pam_start.
This commit is contained in:
@@ -421,6 +421,12 @@ init_defaults(void)
|
||||
def_env_reset = ENV_RESET;
|
||||
def_set_logname = true;
|
||||
def_closefrom = STDERR_FILENO + 1;
|
||||
def_pam_service = estrdup("sudo");
|
||||
#ifdef HAVE_PAM_LOGIN
|
||||
def_pam_login_service = estrdup("sudo-i");
|
||||
#else
|
||||
def_pam_login_service = estrdup("sudo");
|
||||
#endif
|
||||
#ifdef NO_PAM_SESSION
|
||||
def_pam_session = false;
|
||||
#else
|
||||
|
Reference in New Issue
Block a user