<def-group>
  <definition class="compliance" id="sudo_wheel" version="1">
    <metadata>
      <title>Switching User To Root Requires Wheel Group Membership</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 system must restrict the ability to switch to the root user to members of a defined group.</description>
    </metadata>
    <criteria>
      <criterion test_ref="test_sudo_wheel" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="Testing for pam_wheel.so in /etc/pam.d/su" id="test_sudo_wheel" version="1">
    <ind:object object_ref="object_sudo_wheel" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object comment="/etc/pam.d/su" id="object_sudo_wheel" version="1">
    <ind:filepath>/etc/pam.d/su</ind:filepath>
    <ind:pattern operation="pattern match">^([\s]*auth[\s]+required[\s]+(?:/lib/security/(?:\$ISA/)*)*pam_wheel.so.*)$</ind:pattern>
    <ind:instance operation="greater than or equal" datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
