<def-group>
  <definition class="compliance" id="audit_rules_file_deletion_events" version="1">
    <metadata>
      <title>Audit File Deletion Events</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>Audit files deletion events.</description>
      <reference source="DS" ref_id="20131011" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion comment="audit file delete" test_ref="test_audit_rules_file_deletion_events" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" comment="audit file delete" id="test_audit_rules_file_deletion_events" version="1">
    <ind:object object_ref="object_audit_rules_file_deletion_events" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_audit_rules_file_deletion_events" version="1">
    <ind:filepath>/etc/audit/audit.rules</ind:filepath>
    <ind:pattern operation="pattern match">^\-a\s+always,exit\s+(\-F\s+arch=(b64|b32)\s+)?\-S\s+rmdir\s+\-S\s+unlink\s+\-S\s+unlinkat\s+\-S\s+rename\s+\-S\s+renameat\s+\-F\s+auid>=500\s+\-F\s+auid!=4294967295\s+\-k\s+[-\w]+\s*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
