summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weiser <michael@weiser.dinsnail.net>2020-03-16 19:23:07 +0100
committerLars Wendler <polynomial-c@gentoo.org>2020-03-16 19:24:18 +0100
commit29e539125f8c1a419ae2b2e1a1d59866317dba1c (patch)
treeeb62d371ee9930781972389f74d6a01bcba4bcd1 /sys-apps/shadow
parentsci-physics/geant-vmc: Drop old versions (diff)
downloadgentoo-29e539125f8c1a419ae2b2e1a1d59866317dba1c.tar.gz
gentoo-29e539125f8c1a419ae2b2e1a1d59866317dba1c.tar.bz2
gentoo-29e539125f8c1a419ae2b2e1a1d59866317dba1c.zip
sys-apps/shadow: Revbumps to fix pam usage of chpasswd and newusers
Closes: https://bugs.gentoo.org/712372 Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-apps/shadow')
-rw-r--r--sys-apps/shadow/files/pam.d-include/chpasswd3
-rw-r--r--sys-apps/shadow/shadow-4.8-r4.ebuild (renamed from sys-apps/shadow/shadow-4.8-r3.ebuild)4
-rw-r--r--sys-apps/shadow/shadow-4.8.1-r2.ebuild (renamed from sys-apps/shadow/shadow-4.8.1-r1.ebuild)4
3 files changed, 11 insertions, 0 deletions
diff --git a/sys-apps/shadow/files/pam.d-include/chpasswd b/sys-apps/shadow/files/pam.d-include/chpasswd
new file mode 100644
index 00000000000..1043726b0e5
--- /dev/null
+++ b/sys-apps/shadow/files/pam.d-include/chpasswd
@@ -0,0 +1,3 @@
+#%PAM-1.0
+
+password include system-auth
diff --git a/sys-apps/shadow/shadow-4.8-r3.ebuild b/sys-apps/shadow/shadow-4.8-r4.ebuild
index 54f1a3d52e8..7dbee719cd4 100644
--- a/sys-apps/shadow/shadow-4.8-r3.ebuild
+++ b/sys-apps/shadow/shadow-4.8-r4.ebuild
@@ -152,6 +152,10 @@ src_install() {
newpamd "${FILESDIR}"/pam.d-include/passwd ${x}
done
+ for x in chpasswd newusers ; do
+ newpamd "${FILESDIR}"/pam.d-include/chpasswd ${x}
+ done
+
newpamd "${FILESDIR}"/pam.d-include/shadow-r1 groupmems
# comment out login.defs options that pam hates
diff --git a/sys-apps/shadow/shadow-4.8.1-r1.ebuild b/sys-apps/shadow/shadow-4.8.1-r2.ebuild
index 864ebb3923b..65f9a6539c8 100644
--- a/sys-apps/shadow/shadow-4.8.1-r1.ebuild
+++ b/sys-apps/shadow/shadow-4.8.1-r2.ebuild
@@ -152,6 +152,10 @@ src_install() {
newpamd "${FILESDIR}"/pam.d-include/passwd ${x}
done
+ for x in chpasswd newusers ; do
+ newpamd "${FILESDIR}"/pam.d-include/chpasswd ${x}
+ done
+
newpamd "${FILESDIR}"/pam.d-include/shadow-r1 groupmems
# comment out login.defs options that pam hates