summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-01-25 05:00:34 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2016-01-25 05:30:19 +0000
commitd5172c79136fceaac6324fd1896efe1e576fd71d (patch)
tree61c7b7b3222e74a7e55bed3e61b2287b9e638ac2
parente3ce42e70504922f0ea7149f90fc80b549844e93 (diff)
tests: fix install_pam
* pam_unix depends on unix_chkpwd * selinux=1 -> pam_unix runs unix_chkpwd for root too https://git.fedorahosted.org/cgit/linux-pam.git/tree/modules/pam_unix/passverify.c?id=e89d4c97385ff8180e6e81e84c5aa745daf28a79#n202
-rw-r--r--test/test-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions
index 3951bb062f..59167b009b 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -379,6 +379,10 @@ install_pam() {
inst $file
done
+ # pam_unix depends on unix_chkpwd.
+ # see http://www.linux-pam.org/Linux-PAM-html/sag-pam_unix.html
+ dracut_install -o unix_chkpwd
+
[[ "$LOOKS_LIKE_DEBIAN" ]] &&
cp /etc/pam.d/systemd-user $initdir/etc/pam.d/
}