<def-group>
 <!-- THIS FILE IS GENERATED by create_sysctl_checks.py.  DO NOT EDIT.  -->
  <definition class="compliance" id="sysctl_net_ipv6_conf_all_accept_redirects" version="1">
    <metadata>
      <title>Kernel Runtime Parameter "net.ipv6.conf.all.accept_redirects" Check</title>
      <affected family="unix">
        <platform>CentOS 4</platform>
		<platform>CentOS 5</platform>
		<platform>Red Hat Enterprise Linux 4</platform>
		<platform>Red Hat Enterprise Linux 5</platform>
      </affected>
      <description>The kernel runtime parameter "net.ipv6.conf.all.accept_redirects" should be set to "0".</description>
    </metadata>
    <criteria operator="AND">
	  <!-- The test below is disabled since it causes failure if IPv6 is not enabled. -->
      <!-- <criterion comment="kernel runtime parameter net.ipv6.conf.all.accept_redirects set to 0" test_ref="test_runtime_sysctl_net_ipv6_conf_all_accept_redirects" /> -->
      <criterion comment="kernel /etc/sysctl.conf parameter net.ipv6.conf.all.accept_redirects set to 0" test_ref="test_static_sysctl_net_ipv6_conf_all_accept_redirects" />
    </criteria>
  </definition>

  <unix:sysctl_test check="all" check_existence="all_exist" comment="kernel runtime parameter net.ipv6.conf.all.accept_redirects set to 0" id="test_runtime_sysctl_net_ipv6_conf_all_accept_redirects" version="1">
    <unix:object object_ref="object_sysctl_net_ipv6_conf_all_accept_redirects" />
    <unix:state state_ref="state_sysctl_net_ipv6_conf_all_accept_redirects" />
  </unix:sysctl_test>

  <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="net.ipv6.conf.all.accept_redirects static configuration" id="test_static_sysctl_net_ipv6_conf_all_accept_redirects" version="1">
    <ind:object object_ref="object_static_sysctl_net_ipv6_conf_all_accept_redirects" />
  </ind:textfilecontent54_test>

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

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

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