[sudo-commits] sudo changeset 11630:656aa910fbaf

Todd C. Miller Todd.Miller at sudo.ws
Fri Dec 7 09:53:26 MST 2018


changeset:	11630:656aa910fbaf in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/656aa910fbaf
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Fri Dec 07 09:51:34 2018 -0700

Log Message:
	The fix for bug #843 was incomplete and caused pam_end() to be called early.
	sudo_pam_approval() must not set the global pam status to an error
	value if it returns AUTH_SUCCESS.  Otherwise, sudo_pam_cleanup()
	will call pam_end() before sudo_pam_begin_session().  This resulted
	in a NULL PAM handle being used in sudo_pam_begin_session().

diffstat:

 plugins/sudoers/auth/pam.c |  45 +++++++++++++++++++++++++++------------------
 1 files changed, 27 insertions(+), 18 deletions(-)


More information about the sudo-commits mailing list