]> git.ipfire.org Git - thirdparty/systemd.git/commit
pam: do not attempt to close sd-bus after fork in pam_end()
authorLuca Boccassi <bluca@debian.org>
Thu, 20 Apr 2023 11:55:06 +0000 (12:55 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 25 Apr 2023 15:19:57 +0000 (17:19 +0200)
commit4a75704b166de533cedf8f9fab16ffae77bf2093
tree7d45a062b040811fd2de10e121d9a654096ea178
parentb4e5c103be9de99dfb5e2e47fd1563cf5388978a
pam: do not attempt to close sd-bus after fork in pam_end()

When pam_end() is called after a fork, and it cleans up caches, it sets
PAM_DATA_SILENT in error_status. FDs will be shared with the parent, so
we do not want to attempt to close them from a child process, or we'll
hit assertions. Complain loudly and skip.
src/shared/pam-util.c