Add a force flag to sudo_auth_cleanup() to force immediate cleanup.
This is used for PAM authentication to make sure pam_end() is called via sudo_auth_cleanup() when the user authenticates successfully but sudoers denies the command. Debian bug #669687
This commit is contained in:
@@ -101,7 +101,7 @@ sudo_secureware_verify(struct passwd *pw, char *pass, sudo_auth *auth, struct su
|
||||
}
|
||||
|
||||
int
|
||||
sudo_secureware_cleanup(struct passwd *pw, sudo_auth *auth)
|
||||
sudo_secureware_cleanup(struct passwd *pw, sudo_auth *auth, bool force)
|
||||
{
|
||||
char *pw_epasswd = auth->data;
|
||||
debug_decl(sudo_secureware_cleanup, SUDOERS_DEBUG_AUTH);
|
||||
|
Reference in New Issue
Block a user