<def-group>
  <definition class="compliance" id="auditd_data_disk_full_action_stig" version="1">
    {{{ oval_metadata("disk_full_action setting in /etc/audit/auditd.conf is set to SYSLOG, SINGLE or HALT") }}}
    <criteria operator="OR">
      <criterion comment="disk_full_action setting in auditd.conf is set to SYSLOG" test_ref="test_auditd_data_disk_full_action_stig_syslog" />
      <criterion comment="disk_full_action setting in auditd.conf is set to SINGLE" test_ref="test_auditd_data_disk_full_action_stig_single" />
      <criterion comment="disk_full_action setting in auditd.conf is set to HALT" test_ref="test_auditd_data_disk_full_action_stig_halt" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" comment="disk full action" id="test_auditd_data_disk_full_action_stig_syslog" version="1">
    <ind:object object_ref="object_auditd_data_disk_full_action_stig" />
    <ind:state state_ref="state_auditd_data_disk_full_action_stig_syslog" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_test check="all" comment="disk full action" id="test_auditd_data_disk_full_action_stig_single" version="1">
    <ind:object object_ref="object_auditd_data_disk_full_action_stig" />
    <ind:state state_ref="state_auditd_data_disk_full_action_stig_single" />
  </ind:textfilecontent54_test>
    <ind:textfilecontent54_test check="all" comment="disk full action" id="test_auditd_data_disk_full_action_stig_halt" version="1">
    <ind:object object_ref="object_auditd_data_disk_full_action_stig" />
    <ind:state state_ref="state_auditd_data_disk_full_action_stig_halt" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="object_auditd_data_disk_full_action_stig" version="2">
    <ind:filepath>/etc/audit/auditd.conf</ind:filepath>
    <!-- Allow only space (exactly) as delimiter: https://fedorahosted.org/audit/browser/trunk/src/auditd-config.c#L426 -->
    <!-- Require at least one space before and after the equal sign -->
    <ind:pattern operation="pattern match">^[ ]*disk_full_action[ ]+=[ ]+(\S+)[ ]*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

  <ind:textfilecontent54_state id="state_auditd_data_disk_full_action_stig_syslog" version="1">
    <ind:subexpression operation="case insensitive equals">SYSLOG</ind:subexpression>
  </ind:textfilecontent54_state>
  <ind:textfilecontent54_state id="state_auditd_data_disk_full_action_stig_single" version="1">
    <ind:subexpression operation="case insensitive equals">SINGLE</ind:subexpression>
  </ind:textfilecontent54_state>
  <ind:textfilecontent54_state id="state_auditd_data_disk_full_action_stig_halt" version="1">
    <ind:subexpression operation="case insensitive equals">HALT</ind:subexpression>
  </ind:textfilecontent54_state>

</def-group>
