]> git.ipfire.org Git - thirdparty/systemd.git/commit
pam_systemd: remove handling of obsolete "existing" attr from CreateSession() call 40432/head
authorMike Yuan <me@yhndnzj.com>
Thu, 22 Jan 2026 19:41:24 +0000 (20:41 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 22 Jan 2026 19:49:38 +0000 (20:49 +0100)
commit2a2b5f80911cc8514b40728b15f9159ea7966753
tree5f6eb4d7dcc10e775c30b3a364d61d81474d7ed7
parent5d2e9c2ad0c62ca9db9c5f3975bdaf4eb363c615
pam_systemd: remove handling of obsolete "existing" attr from CreateSession() call

Follow-up for b80120c4cba7d134b5437a58437a23fdf7ab2084

After the mentioned commit, logind returns an error if the process
already lives in a session, and register_session() short-circuits
without setting systemd.existing flag. Hence systemd.existing
is either false or unset for pam_sm_close_session(), making
the whole logic effectively NOP. Kill it with fire.
src/login/pam_systemd.c