diff options
author | Nir Soffer <nsoffer@redhat.com> | 2019-01-06 00:36:27 +0200 |
---|---|---|
committer | Tomáš Mráz <t8m@users.noreply.github.com> | 2019-01-10 09:21:19 +0100 |
commit | 7d036249a9772c546ede1f38ad68b3f1575216d6 (patch) | |
tree | 9987686157f5b40a78c9fcd51ddc7cef37dab715 /modules/pam_unix/unix_update.c | |
parent | be49469b9119767158bc5306f4085c366751c56b (diff) | |
download | pam-7d036249a9772c546ede1f38ad68b3f1575216d6.tar.gz pam-7d036249a9772c546ede1f38ad68b3f1575216d6.tar.bz2 pam-7d036249a9772c546ede1f38ad68b3f1575216d6.zip |
pam_lastlog: Respect PAM_SILENT flag
pam_lastlog module will not log info about failed login if the session
was opened with PAM_SILENT flag.
Example use case enabled by this change:
sudo --non-interactive program
If this command is run by another program expecting specific output from
the command run by sudo, the unexpected info about failed logins will
break this program.
* modules/pam_lastlog/pam_lastlog.c: Respect silent option.
(_pam_session_parse): Unset LASTLOG_BTMP if PAM_SILENT is set.
Diffstat (limited to 'modules/pam_unix/unix_update.c')
0 files changed, 0 insertions, 0 deletions