[PATCH 12/13] [bugfix] sshd_set_idle_timeout.xml --> sshd_set_idle_timeout.sh (remediation script)

Shawn Wells shawn.d.wells at gmail.com
Sat Sep 7 19:23:31 UTC 2013


-------------- next part --------------
>From 05e27cb4b0085d2cd2ef336905cd7adfe32dbbad Mon Sep 17 00:00:00 2001
From: Shawn Wells <shawn at redhat.com>
Date: Sat, 7 Sep 2013 12:38:53 -0400
Subject: [PATCH 12/13] [bugfix] sshd_set_idle_timeout.xml --> sshd_set_idle_timeout.sh (remediation script)

---
 RHEL6/input/fixes/bash/sshd_set_idle_timeout.sh  |    8 ++++++++
 RHEL6/input/fixes/bash/sshd_set_idle_timeout.xml |    8 --------
 2 files changed, 8 insertions(+), 8 deletions(-)
 create mode 100644 RHEL6/input/fixes/bash/sshd_set_idle_timeout.sh
 delete mode 100644 RHEL6/input/fixes/bash/sshd_set_idle_timeout.xml

diff --git a/RHEL6/input/fixes/bash/sshd_set_idle_timeout.sh b/RHEL6/input/fixes/bash/sshd_set_idle_timeout.sh
new file mode 100644
index 0000000..0a2d226
--- /dev/null
+++ b/RHEL6/input/fixes/bash/sshd_set_idle_timeout.sh
@@ -0,0 +1,8 @@
+source ./templates/support.sh
+populate sshd_idle_timeout_value
+
+grep -q ^ClientAliveInterval /etc/ssh/sshd_config && \
+  sed -i "s/ClientAliveInterval.*/ClientAliveInterval $sshd_idle_timeout_value/g" /etc/ssh/sshd_config
+if ! [ $? -eq 0 ]; then
+    echo "ClientAliveInterval $sshd_idle_timeout_value" >> /etc/ssh/sshd_config
+fi
diff --git a/RHEL6/input/fixes/bash/sshd_set_idle_timeout.xml b/RHEL6/input/fixes/bash/sshd_set_idle_timeout.xml
deleted file mode 100644
index 0a2d226..0000000
--- a/RHEL6/input/fixes/bash/sshd_set_idle_timeout.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-source ./templates/support.sh
-populate sshd_idle_timeout_value
-
-grep -q ^ClientAliveInterval /etc/ssh/sshd_config && \
-  sed -i "s/ClientAliveInterval.*/ClientAliveInterval $sshd_idle_timeout_value/g" /etc/ssh/sshd_config
-if ! [ $? -eq 0 ]; then
-    echo "ClientAliveInterval $sshd_idle_timeout_value" >> /etc/ssh/sshd_config
-fi
-- 
1.7.1



More information about the scap-security-guide mailing list