>From c3c70926bc063e7d82d94daecf59e22cfcbd658b Mon Sep 17 00:00:00 2001 From: Shawn Wells Date: Sat, 26 Oct 2013 00:36:24 -0400 Subject: [PATCH 2/3] OVAL + bash remediation update for groupowner_shadow_file - XCCDF/OVAL naming, file_groupowner_etc_shadow => groupowner_shadow_file - Added bash remediation --- RHEL6/input/checks/file_groupowner_etc_shadow.xml | 29 --------------------- RHEL6/input/checks/groupowner_shadow_file.xml | 29 +++++++++++++++++++++ RHEL6/input/fixes/bash/groupowner_shadow_file.sh | 1 + RHEL6/input/system/permissions/files.xml | 2 +- 4 files changed, 31 insertions(+), 30 deletions(-) delete mode 100644 RHEL6/input/checks/file_groupowner_etc_shadow.xml create mode 100644 RHEL6/input/checks/groupowner_shadow_file.xml create mode 100644 RHEL6/input/fixes/bash/groupowner_shadow_file.sh diff --git a/RHEL6/input/checks/file_groupowner_etc_shadow.xml b/RHEL6/input/checks/file_groupowner_etc_shadow.xml deleted file mode 100644 index 579e1d8..0000000 --- a/RHEL6/input/checks/file_groupowner_etc_shadow.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - Verify group who owns 'shadow' file - - Red Hat Enterprise Linux 6 - - The /etc/shadow file should be owned by the appropriate - group. - - - - - - - - - - - - 0 - - - /etc/shadow - - diff --git a/RHEL6/input/checks/groupowner_shadow_file.xml b/RHEL6/input/checks/groupowner_shadow_file.xml new file mode 100644 index 0000000..d7423cc --- /dev/null +++ b/RHEL6/input/checks/groupowner_shadow_file.xml @@ -0,0 +1,29 @@ + + + + Verify group who owns 'shadow' file + + Red Hat Enterprise Linux 6 + + The /etc/shadow file should be owned by the appropriate + group. + + + + + + + + + + + + 0 + + + /etc/shadow + + diff --git a/RHEL6/input/fixes/bash/groupowner_shadow_file.sh b/RHEL6/input/fixes/bash/groupowner_shadow_file.sh new file mode 100644 index 0000000..f65ada7 --- /dev/null +++ b/RHEL6/input/fixes/bash/groupowner_shadow_file.sh @@ -0,0 +1 @@ +chgrp root /etc/shadow diff --git a/RHEL6/input/system/permissions/files.xml b/RHEL6/input/system/permissions/files.xml index 77cc19d..55e2c17 100644 --- a/RHEL6/input/system/permissions/files.xml +++ b/RHEL6/input/system/permissions/files.xml @@ -39,7 +39,7 @@ which could weaken the system security posture. The /etc/shadow file stores password hashes. Protection of this file is critical for system security. - + -- 1.7.1