<def-group>
  <definition class="compliance" id="sysconfig_networking_userctl_ifcfg"
  version="1">
    <metadata>
      <title>Disable User Control Of Network Interfaces</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>Network interfaces must only be configurable by privileged users.</description>
    </metadata>
    <criteria comment="Test for USERCTL=no across all interfaces">
      <criterion test_ref="test_sysconfig_networking_userctl_ifcfg" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="Tests the value of the ^[\s]*USERCTL[\s]*=[\s]*([^#]*) expression in the /etc/sysconfig/network-scripts/ifcfg-.* file" id="test_sysconfig_networking_userctl_ifcfg" version="1">
    <ind:object object_ref="obj_sysconfig_networking_userctl_ifcfg" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="obj_sysconfig_networking_userctl_ifcfg" version="1">
    <ind:path>/etc/sysconfig/network-scripts</ind:path>
    <ind:filename operation="pattern match">ifcfg-.*</ind:filename>
    <ind:pattern operation="case insensitive equals">USERCTL=yes</ind:pattern>
    <ind:instance datatype="int" operation="greater than">0</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
