<def-group>
  <definition class="compliance" id="rhosts_auth_pam_files" version="1">
    <metadata>
      <title>The .rhosts file must not be supported in PAM</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>No rhosts_auth entries must exist in /etc/pam.d/* files.</description>
    </metadata>
    <criteria>
      <criterion test_ref="test_rhosts_auth_pam_files" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="Check for rhosts_auth entries." id="test_rhosts_auth_pam_files" version="1">
    <ind:object object_ref="object_rhosts_auth_pam_files" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_rhosts_auth_pam_files" version="1">
    <ind:path>/etc/pam.d</ind:path>
    <ind:filename operation="pattern match">.*</ind:filename>
    <ind:pattern operation="pattern match">.*rhosts_auth.*</ind:pattern>
    <ind:instance operation="greater than or equal" datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
