summaryrefslogtreecommitdiff
path: root/strata/core/shadow.morph
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2015-04-22 15:22:09 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2015-04-27 12:35:05 +0000
commitfda3df9834dfc55796085cb174b8c70de4e4dbb2 (patch)
tree32b5cdf9c412e03edab2d291debe9cf54d393b2a /strata/core/shadow.morph
parent71797241802b692f6be53b0aa4e5d61658c6792b (diff)
downloaddefinitions-fda3df9834dfc55796085cb174b8c70de4e4dbb2.tar.gz
Fix linux-pam
This involves: * Reordering the chunks linux-pam, acl, attr and libcap2 - this means moving them into the 'core' stratum, and fixing errors that occur because of the move. * Configuring pam correctly. * Fix acl failing to build in core. * Fix shadow to build against pam and reconfigure shadow to not do things covered by pam. * Fix tar not building - I am not sure what caused this to fail to build, but fixing it involved stopping it from trying to init submodules that were already checked out. Move linux-pam, acl, and attr into core and make shadow depend on them Change-Id: I1b00ca0158c31ce5f31c11fe60816434508a05a1
Diffstat (limited to 'strata/core/shadow.morph')
-rw-r--r--strata/core/shadow.morph29
1 files changed, 28 insertions, 1 deletions
diff --git a/strata/core/shadow.morph b/strata/core/shadow.morph
index 6887a6b3..f75d0c51 100644
--- a/strata/core/shadow.morph
+++ b/strata/core/shadow.morph
@@ -2,4 +2,31 @@ name: shadow
kind: chunk
build-system: autotools
configure-commands:
-- ./autogen.sh --with-selinux=no --sysconfdir=/etc
+- ./autogen.sh --with-selinux=no --sysconfdir=/etc --with-pam=yes
+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 \
+ LASTLOG_ENAB \
+ MAIL_CHECK_ENAB \
+ OBSCURE_CHECKS_ENAB \
+ PORTTIME_CHECKS_ENAB \
+ QUOTAS_ENAB \
+ CONSOLE MOTD_FILE \
+ FTMP_FILE \
+ NOLOGINS_FILE \
+ ENV_HZ \
+ PASS_MIN_LEN \
+ SU_WHEEL_ONLY \
+ CRACKLIB_DICTPATH \
+ PASS_CHANGE_TRIES \
+ PASS_ALWAYS_WARN \
+ CHFN_AUTH \
+ ENCRYPT_METHOD \
+ ENVIRON_FILE
+ do
+ sed -i "s/^${OPTION}/# &/" "$DESTDIR/etc/login.defs"
+ done