commit: 802dfd1188797b98f8be573efd29feccf7ab8c2c Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Wed May 19 19:36:46 2021 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Wed May 19 19:36:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=802dfd11
sys-apps/systemd: update pam patch for jinja conversion Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> sys-apps/systemd/files/gentoo-pam-r1.patch | 33 ++++++++++++++++++++++++++++++ sys-apps/systemd/systemd-9999.ebuild | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/sys-apps/systemd/files/gentoo-pam-r1.patch b/sys-apps/systemd/files/gentoo-pam-r1.patch new file mode 100644 index 00000000000..8816bae19e0 --- /dev/null +++ b/sys-apps/systemd/files/gentoo-pam-r1.patch @@ -0,0 +1,33 @@ +From e404e655eab9042bfc81ff5638dd54f4a5452ce0 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <[email protected]> +Date: Wed, 19 May 2021 15:34:41 -0400 +Subject: [PATCH] pam: include system-auth for systemd --user + +--- + src/login/systemd-user.in | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/login/systemd-user.in b/src/login/systemd-user.in +index 343aec4a01..a18d7d43cf 100644 +--- a/src/login/systemd-user.in ++++ b/src/login/systemd-user.in +@@ -5,7 +5,7 @@ + {% if ENABLE_HOMED %} + -account sufficient pam_systemd_home.so + {% endif %} +-account sufficient pam_unix.so ++account include system-auth + account required pam_permit.so + + {% if HAVE_SELINUX %} +@@ -13,6 +13,7 @@ session required pam_selinux.so close + session required pam_selinux.so nottys open + {% endif %} + session required pam_loginuid.so ++session include system-auth + session optional pam_keyinit.so force revoke + {% if ENABLE_HOMED %} + -session optional pam_systemd_home.so +-- +2.31.1 + diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild index 72aabc846fe..03cc0e7e225 100644 --- a/sys-apps/systemd/systemd-9999.ebuild +++ b/sys-apps/systemd/systemd-9999.ebuild @@ -223,7 +223,7 @@ src_prepare() { "${FILESDIR}/gentoo-generator-path-r2.patch" "${FILESDIR}/gentoo-systemctl-disable-sysv-sync-r1.patch" "${FILESDIR}/gentoo-journald-audit.patch" - "${FILESDIR}/gentoo-pam.patch" + "${FILESDIR}/gentoo-pam-r1.patch" ) fi
