>From c1e9108bd02e637f6602ae3b96001e500f495f62 Mon Sep 17 00:00:00 2001 From: Shawn Wells Date: Thu, 23 Jan 2014 00:59:25 -0500 Subject: [PATCH 03/10] Moved sshd_disable_rhosts to shared/ - Tested on RHEL7, updated CPE - Created symlinks - Added to RHEL7 rht-ccp profile --- RHEL/6/input/checks/sshd_disable_rhosts.xml | 32 +---------------------------- RHEL/7/input/checks/sshd_disable_rhosts.xml | 1 + RHEL/7/input/profiles/rht-ccp.xml | 2 +- shared/oval/sshd_disable_rhosts.xml | 32 +++++++++++++++++++++++++++++ 4 files changed, 35 insertions(+), 32 deletions(-) mode change 100644 => 120000 RHEL/6/input/checks/sshd_disable_rhosts.xml create mode 120000 RHEL/7/input/checks/sshd_disable_rhosts.xml create mode 100644 shared/oval/sshd_disable_rhosts.xml diff --git a/RHEL/6/input/checks/sshd_disable_rhosts.xml b/RHEL/6/input/checks/sshd_disable_rhosts.xml deleted file mode 100644 index 29db641..0000000 --- a/RHEL/6/input/checks/sshd_disable_rhosts.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - Disable .rhosts Files - - Red Hat Enterprise Linux 6 - - Emulation of the rsh command through the ssh server should - be disabled (and dependencies are met) - - - - - - - - - - - - /etc/ssh/sshd_config - ^[\s]*(?i)IgnoreRhosts[\s]+no[\s]*$ - 1 - - diff --git a/RHEL/6/input/checks/sshd_disable_rhosts.xml b/RHEL/6/input/checks/sshd_disable_rhosts.xml new file mode 120000 index 0000000..4b87bc5 --- /dev/null +++ b/RHEL/6/input/checks/sshd_disable_rhosts.xml @@ -0,0 +1 @@ +../../../../shared/oval/sshd_disable_rhosts.xml \ No newline at end of file diff --git a/RHEL/7/input/checks/sshd_disable_rhosts.xml b/RHEL/7/input/checks/sshd_disable_rhosts.xml new file mode 120000 index 0000000..4b87bc5 --- /dev/null +++ b/RHEL/7/input/checks/sshd_disable_rhosts.xml @@ -0,0 +1 @@ +../../../../shared/oval/sshd_disable_rhosts.xml \ No newline at end of file diff --git a/RHEL/7/input/profiles/rht-ccp.xml b/RHEL/7/input/profiles/rht-ccp.xml index a01f7a8..eaf801a 100644 --- a/RHEL/7/input/profiles/rht-ccp.xml +++ b/RHEL/7/input/profiles/rht-ccp.xml @@ -127,8 +127,8 @@ SSH / REMOTE ACCESS CHECKS