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:
parent
3c83f15967
commit
da0da5eccf
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue