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-09-10 19:04:21 +02:00
committed by Lennart Poettering
parent 3c83f15967
commit da0da5eccf
+1 -1
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,