tests: fix install_pam
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 25 Jan 2016 05:00:34 +0000 (05:00 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 25 Jan 2016 05:30:19 +0000 (05:30 +0000)
* 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

test/test-functions

index 3951bb0..59167b0 100644 (file)
@@ -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/
 }