>From 592282f66f8cd7b3d25f63997a947d8f2d6905a9 Mon Sep 17 00:00:00 2001 From: Shawn Wells Date: Sun, 15 Sep 2013 20:09:48 -0400 Subject: [PATCH 20/22] OVAL signoff + remediation: no_empty_passwords - OVAL/XCCDF namings - OVAL signoff - filename -> filepath - Remediation TESTING [root@SSG-RHEL6 checks]# ./testcheck.py no_empty_passwords.xml Evaluating with OVAL tempfile : /tmp/no_empty_passwordsya8tSy.xml Writing results to : /tmp/no_empty_passwordsya8tSy.xml-results Definition oval:scap-security-guide.testing:def:228: false Evaluation done. [root@SSG-RHEL6 checks]# bash ../fixes/bash/no_empty_passwords.sh [root@SSG-RHEL6 checks]# ./testcheck.py no_empty_passwords.xml Evaluating with OVAL tempfile : /tmp/no_empty_passwordsxID5Dt.xml Writing results to : /tmp/no_empty_passwordsxID5Dt.xml-results Definition oval:scap-security-guide.testing:def:228: true Evaluation done. --- RHEL6/input/checks/accounts_pam_no_nullok.xml | 23 -------------------- RHEL6/input/checks/no_empty_passwords.xml | 22 +++++++++++++++++++ RHEL6/input/fixes/bash/no_empty_passwords.sh | 1 + .../accounts/restrictions/password_storage.xml | 2 +- 4 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 RHEL6/input/checks/accounts_pam_no_nullok.xml create mode 100644 RHEL6/input/checks/no_empty_passwords.xml create mode 100644 RHEL6/input/fixes/bash/no_empty_passwords.sh diff --git a/RHEL6/input/checks/accounts_pam_no_nullok.xml b/RHEL6/input/checks/accounts_pam_no_nullok.xml deleted file mode 100644 index eed8a41..0000000 --- a/RHEL6/input/checks/accounts_pam_no_nullok.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - No nullok Option in /etc/pam.d/system-auth - - Red Hat Enterprise Linux 6 - - The file /etc/pam.d/system-auth should not contain the nullok option - - - - - - - - - - /etc/pam.d/ - system-auth - \s*nullok\s* - 1 - - diff --git a/RHEL6/input/checks/no_empty_passwords.xml b/RHEL6/input/checks/no_empty_passwords.xml new file mode 100644 index 0000000..b2170b9 --- /dev/null +++ b/RHEL6/input/checks/no_empty_passwords.xml @@ -0,0 +1,22 @@ + + + + No nullok Option in /etc/pam.d/system-auth + + Red Hat Enterprise Linux 6 + + The file /etc/pam.d/system-auth should not contain the nullok option + + + + + + + + + + /etc/pam.d/system-auth + \s*nullok\s* + 1 + + diff --git a/RHEL6/input/fixes/bash/no_empty_passwords.sh b/RHEL6/input/fixes/bash/no_empty_passwords.sh new file mode 100644 index 0000000..fca40af --- /dev/null +++ b/RHEL6/input/fixes/bash/no_empty_passwords.sh @@ -0,0 +1 @@ +sed -i 's/\//g' /etc/pam.d/system-auth diff --git a/RHEL6/input/system/accounts/restrictions/password_storage.xml b/RHEL6/input/system/accounts/restrictions/password_storage.xml index e71ef62..fb2efc0 100644 --- a/RHEL6/input/system/accounts/restrictions/password_storage.xml +++ b/RHEL6/input/system/accounts/restrictions/password_storage.xml @@ -37,7 +37,7 @@ empty passwords should never be used in operational environments. - + -- 1.7.1