pam_systemd: support use in PID namespaces

Pass 0 as leader PID to CreateSession to let logind use the PID from the
D-Bus credentials. This allows use of pam_systemd in PID namespaces.
This commit is contained in:
Jürg Billeter 2018-08-18 09:29:43 +02:00 committed by Lennart Poettering
parent 3c83f15967
commit da0da5eccf
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
r = sd_bus_message_append(m, "uusssssussbss",
(uint32_t) pw->pw_uid,
(uint32_t) getpid_cached(),
0,
service,
type,
class,