From: Jürg Billeter Date: Sat, 18 Aug 2018 07:29:43 +0000 (+0200) Subject: pam_systemd: support use in PID namespaces X-Git-Tag: v240~743 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da0da5eccf5f20874111e0681b111704bf9a1c92;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c index 9d42d1a3bd2..8464df122c4 100644 --- a/src/login/pam_systemd.c +++ b/src/login/pam_systemd.c @@ -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,