<def-group>
  <definition class="compliance" id="ftp_restrict_to_anon" version="1">
    <metadata>
      <title>Restrict Anonymous Users</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>Disable anonymous access to FTP.</description>
      <reference source="galford" ref_id="20150316" ref_url="test_attestation" />
    </metadata>
    <criteria operator="OR">
      <extend_definition comment="vsftpd package is not installed" negate="true" definition_ref="package_vsftpd_installed" />
      <criterion comment="Disable anonymous access" test_ref="test_ftp_restrict_to_anon" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="Disable anonymous access" id="test_ftp_restrict_to_anon" version="1">
    <ind:object object_ref="object_ftp_restrict_to_anon" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object comment="Disable anonymous access" id="object_ftp_restrict_to_anon" version="1">
    <ind:filepath>/etc/vsftpd/vsftpd.conf</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*local_enable=NO$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>

