<def-group>
    <definition class="compliance" id="audit_basic_configuration" version="1">
      <metadata>
        <title>Configure basic parameters of Audit system</title>
        
    <affected family="unix">
    <platform>Ubuntu 22.04</platform>
    </affected>
        <description>Inspect the contents of /etc/audit/rules.d/10-base-config.rules</description>
    </metadata>
      <criteria>
          <criterion comment="Check contents of file" test_ref="audit_basic_configuration_test_whole_file_contents_tc_audit_rules_d_10_base_config_rules" />
      </criteria>
    </definition>

    <ind:textfilecontent54_test check="all" check_existence="all_exist"
    comment="Tests if contents of /etc/audit/rules.d/10-base-config.rules is exactly what is defined in rule description"
    id="audit_basic_configuration_test_whole_file_contents_tc_audit_rules_d_10_base_config_rules" version="1">
      <ind:object object_ref="audit_basic_configuration_object_whole_file_contents_tc_audit_rules_d_10_base_config_rules" />
      <ind:state state_ref="audit_basic_configuration_state_whole_file_contents_tc_audit_rules_d_10_base_config_rules" />
    </ind:textfilecontent54_test>

    <ind:textfilecontent54_object id="audit_basic_configuration_object_whole_file_contents_tc_audit_rules_d_10_base_config_rules" version="1">
      <ind:behaviors singleline="true" multiline="false" />
      <ind:filepath>/etc/audit/rules.d/10-base-config.rules</ind:filepath>
      <ind:pattern operation="pattern match">^.*$</ind:pattern>
      <ind:instance datatype="int">1</ind:instance>
    </ind:textfilecontent54_object>

    <ind:textfilecontent54_state id="audit_basic_configuration_state_whole_file_contents_tc_audit_rules_d_10_base_config_rules" version="1">
      <ind:text operation="equals">## First rule - delete all
-D

## Increase the buffers to survive stress events.
## Make this bigger for busy systems
-b 8192

## This determine how long to wait in burst of events
--backlog_wait_time 60000

## Set failure mode to syslog
-f 1

</ind:text>
    </ind:textfilecontent54_state>

  </def-group>