]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Complete Linux-PAM compliance for forked child in su and login.
authorAndrew G. Morgan <morgan@kernel.org>
Sun, 28 Nov 2021 05:00:22 +0000 (21:00 -0800)
committerAndrew G. Morgan <morgan@kernel.org>
Sun, 28 Nov 2021 05:00:22 +0000 (21:00 -0800)
commit4660286e9cdff6d95b49295674b96f83af10ea36
tree8b1b3e276d999db1849f82039b2613638e9f63fb
parent57d9fd2bea629f211bdd30a12cacc759c0b4f93b
Complete Linux-PAM compliance for forked child in su and login.

As documented here:

http://www.linux-pam.org/Linux-PAM-html/adg-interface-by-app-expected.html#adg-pam_end

The child that is about to exec*() the user shell is supposed to pam_end()
with PAM_DATA_SILENT. This gives the modules a last chance to do a minor
cleanup of the module state before the user's shell is launched.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
login-utils/login.c
login-utils/su-common.c