<def-group>
 <!-- THIS FILE IS GENERATED by create_sysctl_checks.py.  DO NOT EDIT.  -->
  <definition class="compliance" id="sysctl_kernel_ipv6_disable" version="2">
    <metadata>
      <title>Kernel Runtime Parameter IPv6 Check</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 7</platform>
        <platform>multi_platform_fedora</platform>
      </affected>
      <description>Disables IPv6 for all network interfaces.</description>
      <reference source="galford" ref_id="20141015" ref_url="test_attestation" />
    </metadata>
    <criteria operator="AND">
      <criterion comment="Disable IPv6 runtime check" test_ref="test_runtime_sysctl_disable_ipv6" />
      <criterion comment="Disable IPv6 in sysctl.d conf file" test_ref="test_static_sysctl_disable_ipv6_conf" />
    </criteria>
  </definition>

  <unix:sysctl_test check="all" check_existence="all_exist" comment="Disable IPv6 runtime check" id="test_runtime_sysctl_disable_ipv6" version="1">
    <unix:object object_ref="object_sysctl_disable_ipv6" />
    <unix:state state_ref="state_sysctl_disable_ipv6" />
  </unix:sysctl_test>

  <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="Disable IPv6 in sysctl.d conf file" id="test_static_sysctl_disable_ipv6_conf" version="1">
    <ind:object object_ref="object_static_sysctl_disable_ipv6_conf" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="object_static_sysctl_disable_ipv6_conf" version="1">
    <ind:filepath>/etc/sysctl.d/ipv6.conf</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*net.ipv6.conf.all.disable_ipv6[\s]*=[\s]*1[\s]*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

  <unix:sysctl_object id="object_sysctl_disable_ipv6" version="1">
    <unix:name>net.ipv6.conf.all.disable_ipv6</unix:name>
  </unix:sysctl_object>

  <unix:sysctl_state id="state_sysctl_disable_ipv6" version="1">
    <unix:value datatype="int" operation="equals">1</unix:value>
  </unix:sysctl_state>
</def-group>
