]> git.ipfire.org Git - thirdparty/systemd.git/commit
pam-util: include PID in PAM data field id
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Apr 2023 12:32:54 +0000 (14:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 27 Apr 2023 15:02:49 +0000 (17:02 +0200)
commit402014086d12b2b8ac524c5354ddcb4bb059ca59
treebfa05e0b8bfa3816beebdbdac62366eabf345b80
parentfd34e27fb9903c2e6de85d4cd5e0ca88ffc8f72f
pam-util: include PID in PAM data field id

Let's systematically avoid sharing cached busses between processes (i.e.
from parent and child after fork()), by including the PID in the field
name.

With that we're never tempted to use a bus object the parent created in
the child.

(Note this is about *use*, not about *destruction*. Destruction needs to
be checked by other means.)
src/shared/pam-util.c