From e134e692b63485bd645eae590abe919f7213e58c Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Nov 04 2016 13:46:25 +0000 Subject: Fix systemd-user PAM config and two packaging issues --- diff --git a/systemd-user.m4 b/systemd-user.m4 new file mode 100644 index 0000000..f188a8e --- /dev/null +++ b/systemd-user.m4 @@ -0,0 +1,12 @@ +# This file is part of systemd. +# +# 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 include system-auth diff --git a/systemd.spec b/systemd.spec index 0f913f8..5b8f9ff 100644 --- a/systemd.spec +++ b/systemd.spec @@ -37,6 +37,7 @@ Source8: systemd-journal-gatewayd.xml Source9: 20-yama-ptrace.conf Source10: systemd-udev-trigger-no-reload.conf Source11: 20-grubby.install +Source12: https://raw.githubusercontent.com/systemd/systemd/1000522a60ceade446773c67031b47a566d4a70d/src/login/systemd-user.m4 Patch0001: 0001-build-sys-link-test-seccomp-against-seccomp-libs-456.patch Patch0002: 0002-kernel-install-use-exit-instead-of-return-4565.patch @@ -235,6 +236,9 @@ systemd-journal-remote, and systemd-journal-upload. git am %{patches} %endif +# Restore systemd-user pam config from before "removal of Fedora-specific bits" +cp -p %{SOURCE12} src/login/ + %build ./autogen.sh @@ -668,7 +672,7 @@ getent passwd systemd-journal-upload >/dev/null 2>&1 || useradd -r -l -g systemd %exclude %{system_unit_dir}/*/var-lib-machines.mount %exclude %{system_unit_dir}/systemd-journal-gatewayd.* %exclude %{system_unit_dir}/systemd-journal-remote.* -%exclude %{system_unit_dir}/systemd-journal-upload.* +%exclude %{system_unit_dir}/*upload.* %exclude %{system_unit_dir}/systemd-rfkill.* %exclude %{system_unit_dir}/systemd-backlight* %exclude %{system_unit_dir}/*/systemd-random-seed.service @@ -938,13 +942,13 @@ getent passwd systemd-journal-upload >/dev/null 2>&1 || useradd -r -l -g systemd %config(noreplace) %{_sysconfdir}/systemd/journal-upload.conf %{system_unit_dir}/systemd-journal-gatewayd.* %{system_unit_dir}/systemd-journal-remote.* -%{system_unit_dir}/systemd-journal-upload.* +%{system_unit_dir}/*upload.* %{pkgdir}/systemd-journal-gatewayd %{pkgdir}/systemd-journal-remote %{pkgdir}/systemd-journal-upload %{_prefix}/lib/tmpfiles.d/systemd-remote.conf %{_prefix}/lib/sysusers.d/systemd-remote.conf -%dir %attr(0644,systemd-journal-upload,systemd-journal-upload) %{_localstatedir}/lib/systemd/journal-upload +%dir %attr(0755,systemd-journal-upload,systemd-journal-upload) %{_localstatedir}/lib/systemd/journal-upload %{_datadir}/systemd/gatewayd /usr/lib/firewalld/services/* %{_mandir}/man[1578]/*journal-remote.* @@ -954,6 +958,9 @@ getent passwd systemd-journal-upload >/dev/null 2>&1 || useradd -r -l -g systemd %changelog * Fri Nov 4 2016 Zbigniew Jędrzejewski-Szmek - 232-2 - Fix kernel-install (#1391829) +- Restore previous systemd-user PAM config (#1391836) +- Move journal-upload.conf.5 from systemd main to journal-remote subpackage (#1391833) +- Fix permissions on /var/lib/systemd/journal-upload (#1262665) * Thu Nov 3 2016 Zbigniew Jędrzejewski-Szmek - 232-1 - Update to latest version (#998615, #1181922, #1374371, #1390704, #1384150, #1287161)