Comment 3 for bug 1666203

Revision history for this message
Don van der Haghen (donvdh) wrote :

Attached patch (which is based on pam_1.1.8-3.6ubuntu2) fixes the issue for Ubuntu 18.04/Bionic
Following fix was implemented as mentioned by the reporter of the LP bug: https://github.com/linux-pam/linux-pam/commit/c5f829931a22c65feffee16570efdae036524bee

I tested the patch and it indeed resolves the issue: pam_tty_audit now
works as expected and users are still able to login after adding:
session required pam_tty_audit.so enable=root
to
/etc/pam.d/common-session

"aureport --tty" shows the expected output.

  * Fix: pam_tty_audit failed in pam_open_session (LP: #1666203)

The patch has also been submitted to Debian.