From b69d36e5718e188df72bfcd97038f0690e3014f8 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jan 11 2017 17:16:22 +0000 Subject: Add patch to restore Fedora-specific systemd-user PAM config --- diff --git a/0999-login-drop-fedora-specific-PAM-config-add-note-to-DI.patch b/0999-login-drop-fedora-specific-PAM-config-add-note-to-DI.patch new file mode 100644 index 0000000..7addf55 --- /dev/null +++ b/0999-login-drop-fedora-specific-PAM-config-add-note-to-DI.patch @@ -0,0 +1,35 @@ +From baed1fedba161d7db89636a417751891831c432a Mon Sep 17 00:00:00 2001 +From: Felipe Sateler +Date: Mon, 10 Oct 2016 10:40:05 -0300 +Subject: [PATCH] login: drop fedora-specific PAM config, add note to + DISTRO_PORTING (#4314) + +It is impossible to ship a fully generic PAM configuration upstream. +Therefore, ship a minimal configuration with the systemd --user requirements, +and add a note to DISTRO_PORTING documenting this. + +Fixes #4284 +--- + src/login/systemd-user.m4 | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git b/src/login/systemd-user.m4 a/src/login/systemd-user.m4 +index fe38b24fef..f188a8e548 100644 +--- b/src/login/systemd-user.m4 ++++ a/src/login/systemd-user.m4 +@@ -2,9 +2,11 @@ + # + # Used by systemd --user instances. + ++account include system-auth ++ + m4_ifdef(`HAVE_SELINUX', + session required pam_selinux.so close + session required pam_selinux.so nottys open + )m4_dnl + session required pam_loginuid.so +-session optional pam_systemd.so ++session include system-auth +-- +2.9.0 + diff --git a/systemd.spec b/systemd.spec index b146ed4..1ac7ce4 100644 --- a/systemd.spec +++ b/systemd.spec @@ -12,7 +12,7 @@ Name: systemd Url: http://www.freedesktop.org/wiki/Software/systemd Version: 232 -Release: 6%{?gitcommit:.git%{gitcommitshort}}%{?dist} +Release: 7%{?gitcommit:.git%{gitcommitshort}}%{?dist} # For a breakdown of the licensing, see README License: LGPLv2+ and MIT and GPLv2+ Summary: System and Service Manager @@ -44,6 +44,9 @@ Patch0002: 0002-kernel-install-use-exit-instead-of-return-4565.patch Patch0003: 0003-kernel-install-avoid-process-substitution.patch Patch0998: 0998-resolved-create-etc-resolv.conf-symlink-at-runtime.patch +# git format-patch-ab -R -1 baed1fedba161d7db89636a417751891831c432a src/login/systemd-user.m4 +# https://bugzilla.redhat.com/show_bug.cgi?id=1391836 +Patch0999: 0999-login-drop-fedora-specific-PAM-config-add-note-to-DI.patch %global num_patches %{lua: c=0; for i,p in ipairs(patches) do c=c+1; end; print(c);} @@ -956,6 +959,9 @@ getent passwd systemd-journal-upload >/dev/null 2>&1 || useradd -r -l -g systemd %{_mandir}/man[1578]/systemd-journal-gateway* %changelog +* Wed Jan 11 2017 Zbigniew Jędrzejewski-Szmek - 232-7 +- Add patch to restore Fedora-specific systemd-user PAM config (#1391836) + * Sat Jan 07 2017 Kevin Fenzi - 232-6 - Fix scriptlets to never fail in libs post.