Package: systemd Version: 231-7 Followup-For: Bug #838191 Dear Maintainer,
I am attaching the patch to debian/patches/debian/Adjust-systemd-user-pam-config-file-for-Debian.patch Thanks for the analysis about system-auth, I'll let you know what the upstream devs think about documenting better the systemd-user requirements. Ciao ciao, Antonio -- Package-specific info: -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (900, 'unstable'), (500, 'unstable-debug') Architecture: amd64 (x86_64) Kernel: Linux 4.7.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system) Versions of packages systemd depends on: ii adduser 3.115 ii libacl1 2.2.52-3 ii libapparmor1 2.10.95-4+b1 ii libaudit1 1:2.6.6-1 ii libblkid1 2.28.2-1 ii libc6 2.24-3 ii libcap2 1:2.25-1 ii libcryptsetup4 2:1.7.0-2 ii libgcrypt20 1.7.3-1 ii libgpg-error0 1.24-1 ii libidn11 1.33-1 ii libip4tc0 1.6.0-3 ii libkmod2 22-1.1 ii liblzma5 5.1.1alpha+20120614-2.1 ii libmount1 2.28.2-1 ii libpam0g 1.1.8-3.3 ii libseccomp2 2.3.1-2 ii libselinux1 2.5-3 ii libsystemd0 231-7 ii mount 2.28.2-1 ii util-linux 2.28.2-1 Versions of packages systemd recommends: ii dbus 1.10.10-1 ii libpam-systemd 231-7 Versions of packages systemd suggests: ii policykit-1 0.105-16 ii systemd-container 231-7 pn systemd-ui <none> Versions of packages systemd is related to: ii udev 231-7 -- no debconf information -- Antonio Ospite https://ao2.it https://twitter.com/ao2it A: Because it messes up the order in which people normally read text. See http://en.wikipedia.org/wiki/Posting_style Q: Why is top-posting such a bad thing?
>From d3d900a938200decaa5d4e2afbd6f81604bc30e9 Mon Sep 17 00:00:00 2001 From: Antonio Ospite <a...@ao2.it> Date: Tue, 27 Sep 2016 16:10:52 +0200 Subject: [PATCH] debian/patches: update systemd-user pam config to require pam_limits.so MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM<pyWR#k60!#=#>/Vb;]yA5<GWI5`6u&+ ;6b'@y|8w"wB;4/e!7wYYrcqdJFY,~%Gk_4]cq$Ei/7<j&N3ah(m`ku?pX.&+~:_/wC~dwn^)MizBG !pE^+iDQQ1yC6^,)YDKkxDd!T>\I~93>J<_`<4)A{':UrE Upstream loads pam_limits.so indirectly when launching systemd-user because it is loaded from the included system-auth. Debian does not include system-auth so, in order to honor the limits specified in /etc/security/limits.conf for user units, load pam_limits.so directly from /etc/pam.d/systemd-user. Closes: #838191 Thanks: Mantas Mikulėnas for the suggestion --- .../debian/Adjust-systemd-user-pam-config-file-for-Debian.patch | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/debian/patches/debian/Adjust-systemd-user-pam-config-file-for-Debian.patch b/debian/patches/debian/Adjust-systemd-user-pam-config-file-for-Debian.patch index c27a1de..979c975 100644 --- a/debian/patches/debian/Adjust-systemd-user-pam-config-file-for-Debian.patch +++ b/debian/patches/debian/Adjust-systemd-user-pam-config-file-for-Debian.patch @@ -5,14 +5,12 @@ Subject: Adjust systemd-user pam config file for Debian This pam config file is used by libpam-systemd/systemd-logind when launching systemd user instances. --- - src/login/systemd-user.m4 | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) + src/login/systemd-user.m4 | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) -diff --git a/src/login/systemd-user.m4 b/src/login/systemd-user.m4 -index f188a8e..ef544e3 100644 --- a/src/login/systemd-user.m4 +++ b/src/login/systemd-user.m4 -@@ -2,11 +2,12 @@ +@@ -2,11 +2,13 @@ # # Used by systemd --user instances. @@ -25,5 +23,6 @@ index f188a8e..ef544e3 100644 )m4_dnl session required pam_loginuid.so -session include system-auth ++session required pam_limits.so +@include common-session-noninteractive +session optional pam_systemd.so -- 2.9.3