diff -u pam-1.1.8/debian/changelog pam-1.1.8/debian/changelog --- pam-1.1.8/debian/changelog +++ pam-1.1.8/debian/changelog @@ -1,3 +1,9 @@ +pam (1.1.8-3.2ubuntu2.2) xenial; urgency=medium + + * Fix: pam_tty_audit failed in pam_open_session (LP: #1666203) + + -- Don van der Haghen Fri, 01 Mar 2019 09:36:08 +0000 + pam (1.1.8-3.2ubuntu2.1) xenial; urgency=medium * d/local/pam_getenv: only in patch2: unchanged: --- pam-1.1.8.orig/patches/lp1666203-tty-audit-failed-fix +++ pam-1.1.8/patches/lp1666203-tty-audit-failed-fix @@ -0,0 +1,24 @@ +Description: When pam_tty_audit is included in /etc/pam.d/common-sessions, users are unable to login. This patch resolves the issue. +Bug: https://bugs.launchpad.net/ubuntu/+source/pam/+bug/1666203 +Origin: https://github.com/linux-pam/linux-pam/commit/c5f829931a22c65feffee16570efdae036524bee +Index: pam-1.1.8/modules/pam_tty_audit/pam_tty_audit.c +=================================================================== +--- pam-1.1.8.orig/modules/pam_tty_audit/pam_tty_audit.c ++++ pam-1.1.8/modules/pam_tty_audit/pam_tty_audit.c +@@ -36,6 +36,7 @@ + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + DAMAGE. */ + ++#include "config.h" + #include + #include + #include +@@ -275,6 +276,8 @@ pam_sm_open_session (pam_handle_t *pamh, + return PAM_SESSION_ERR; + } + ++ memcpy(&new_status, old_status, sizeof(new_status)); ++ + new_status.enabled = (command == CMD_ENABLE ? 1 : 0); + #ifdef HAVE_STRUCT_AUDIT_TTY_STATUS_LOG_PASSWD + new_status.log_passwd = log_passwd; only in patch2: unchanged: --- pam-1.1.8.orig/patches/series +++ pam-1.1.8/patches/series @@ -0,0 +1 @@ +lp1666203-tty-audit-failed-fix