[PATCH 02/13] Update to network_disable_zeroconf OVAL

David Smith dsmith at eclipse.ncsc.mil
Sat Sep 7 19:37:15 UTC 2013


nack;  the APIPA addresses are in the 169.254.0.0/16 range (there's a typo
in the patch)


On Sat, Sep 7, 2013 at 3:22 PM, Shawn Wells <shawn.d.wells at gmail.com> wrote:

>
>
> _______________________________________________
> scap-security-guide mailing list
> scap-security-guide at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/scap-security-guide/attachments/20130907/e8082c61/attachment.html>
-------------- next part --------------
From 6153f075586aa7fd02b949570d115895351b12e2 Mon Sep 17 00:00:00 2001
From: Shawn Wells <shawn at redhat.com>
Date: Sat, 7 Sep 2013 10:43:32 -0400
Subject: [PATCH 02/13] Update to network_disable_zeroconf OVAL
 - Updated OVAL name to match XCCDF name
 - filename --> filepath in OVAL
 - Added remediation

---
 RHEL6/input/checks/network_disable_zeroconf.xml    |   27 +++++++++++++++++++
 RHEL6/input/checks/sysconfig_nozeroconf_yes.xml    |   28 --------------------
 RHEL6/input/fixes/bash/network_disable_zeroconf.sh |    1 +
 RHEL6/input/system/network/network.xml             |    2 +-
 4 files changed, 29 insertions(+), 29 deletions(-)
 create mode 100644 RHEL6/input/checks/network_disable_zeroconf.xml
 delete mode 100644 RHEL6/input/checks/sysconfig_nozeroconf_yes.xml
 create mode 100644 RHEL6/input/fixes/bash/network_disable_zeroconf.sh

diff --git a/RHEL6/input/checks/network_disable_zeroconf.xml b/RHEL6/input/checks/network_disable_zeroconf.xml
new file mode 100644
index 0000000..1698103
--- /dev/null
+++ b/RHEL6/input/checks/network_disable_zeroconf.xml
@@ -0,0 +1,27 @@
+<def-group>
+  <definition class="compliance" id="network_disable_zeroconf" version="1">
+    <metadata>
+      <title>Disable Zeroconf Networking</title>
+      <affected family="unix">
+        <platform>Red Hat Enterprise Linux 6</platform>
+      </affected>
+      <description>Disable Zeroconf automatic route assignment in the
+      169.245.0.0 subnet.</description>
+      <reference source="MED" ref_id="20130813" ref_url="test_attestation" />
+    </metadata>
+    <criteria>
+      <criterion comment="Look for NOZEROCONF=yes in /etc/sysconfig/network"
+      test_ref="test_sysconfig_nozeroconf_yes" />
+    </criteria>
+  </definition>
+  <ind:textfilecontent54_test check="all" check_existence="at_least_one_exists"
+  comment="check NOZEROCONF=yes in /etc/sysconfig/network"
+  id="test_sysconfig_nozeroconf_yes" version="1">
+    <ind:object object_ref="obj_sysconfig_nozeroconf_yes" />
+  </ind:textfilecontent54_test>
+  <ind:textfilecontent54_object id="obj_sysconfig_nozeroconf_yes" version="1">
+    <ind:filepath>/etc/sysconfig/network</ind:filepath>
+    <ind:pattern operation="pattern match">^[\s]*NOZEROCONF[\s]*=[\s]*yes</ind:pattern>
+    <ind:instance datatype="int">1</ind:instance>
+  </ind:textfilecontent54_object>
+</def-group>
diff --git a/RHEL6/input/checks/sysconfig_nozeroconf_yes.xml b/RHEL6/input/checks/sysconfig_nozeroconf_yes.xml
deleted file mode 100644
index 977f125..0000000
--- a/RHEL6/input/checks/sysconfig_nozeroconf_yes.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<def-group>
-  <definition class="compliance" id="sysconfig_nozeroconf_yes" version="1">
-    <metadata>
-      <title>Disable Zeroconf Networking</title>
-      <affected family="unix">
-        <platform>Red Hat Enterprise Linux 6</platform>
-      </affected>
-      <description>Disable Zeroconf automatic route assignment in the
-      169.245.0.0 subnet.</description>
-      <reference source="MED" ref_id="20130813" ref_url="test_attestation" />
-    </metadata>
-    <criteria>
-      <criterion comment="Look for NOZEROCONF=yes in /etc/sysconfig/network"
-      test_ref="test_sysconfig_nozeroconf_yes" />
-    </criteria>
-  </definition>
-  <ind:textfilecontent54_test check="all" check_existence="at_least_one_exists"
-  comment="check NOZEROCONF=yes in /etc/sysconfig/network"
-  id="test_sysconfig_nozeroconf_yes" version="1">
-    <ind:object object_ref="obj_sysconfig_nozeroconf_yes" />
-  </ind:textfilecontent54_test>
-  <ind:textfilecontent54_object id="obj_sysconfig_nozeroconf_yes" version="1">
-    <ind:path>/etc/sysconfig</ind:path>
-    <ind:filename>network</ind:filename>
-    <ind:pattern operation="pattern match">^[\s]*NOZEROCONF[\s]*=[\s]*yes</ind:pattern>
-    <ind:instance datatype="int">1</ind:instance>
-  </ind:textfilecontent54_object>
-</def-group>
diff --git a/RHEL6/input/fixes/bash/network_disable_zeroconf.sh b/RHEL6/input/fixes/bash/network_disable_zeroconf.sh
new file mode 100644
index 0000000..84ebf55
--- /dev/null
+++ b/RHEL6/input/fixes/bash/network_disable_zeroconf.sh
@@ -0,0 +1 @@
+echo "NOZEROCONF=yes" >> /etc/sysconfig/network
diff --git a/RHEL6/input/system/network/network.xml b/RHEL6/input/system/network/network.xml
index de1c683..9c30337 100644
--- a/RHEL6/input/system/network/network.xml
+++ b/RHEL6/input/system/network/network.xml
@@ -46,7 +46,7 @@ address assignment commonly occurs when the system is configured to use DHCP
 but fails to receive an address assignment from the DHCP server.
 </rationale>
 <ident cce="27151-0" />
-<oval id="sysconfig_nozeroconf_yes" />
+<oval id="network_disable_zeroconf" />
 <ref nist="CM-7" />
 </Rule>
 
-- 
1.7.1



More information about the scap-security-guide mailing list