summaryrefslogtreecommitdiff
path: root/strata/core/shadow.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/core/shadow.morph')
-rw-r--r--strata/core/shadow.morph9
1 files changed, 6 insertions, 3 deletions
diff --git a/strata/core/shadow.morph b/strata/core/shadow.morph
index 34ec6197..c8715a7d 100644
--- a/strata/core/shadow.morph
+++ b/strata/core/shadow.morph
@@ -6,13 +6,11 @@ configure-commands:
- |
./autogen.sh --with-selinux=no \
--sysconfdir=/etc \
- --with-pam=yes \
+ --with-libpam=yes \
--prefix="$PREFIX" \
--bindir=/bin
post-install-commands:
# Disable things handled by pam instead
-- rm "$DESTDIR/etc/limits"
-- rm "$DESTDIR/etc/login.access"
- |
for OPTION in FAIL_DELAY \
FAILLOG_ENAB \
@@ -48,3 +46,8 @@ post-install-commands:
else
echo 'ENCRYPT_METHOD SHA512' >>"$DESTDIR/etc/login.defs"
fi
+
+# The default pam.d config files have pam_selinux.so as a requirement, even
+# when shadow is configured '--with-selinux=no'. We change this default config
+# to make this requirement optional.
+- sed -i -e 's/\(.*\)required\(.*pam_selinux.so.*\)/\1optional\2/' "$DESTDIR"/etc/pam.d/*