<def-group>
  <definition class="compliance" id="logwatch_configured_hostlimit" version="1">
    <metadata>
      <title>Ensure Logwatch HostLimit Configured</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>Test if HostLimit line in logwatch.conf is set appropriately.</description>
      <reference source="MED" ref_id="20130819" ref_url="test_attestation" />
    </metadata>
    <criteria operator="AND">
      <criterion comment="Test value of HostLimit" test_ref="test_logwatch_configured_hostlimit" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="Test HostLimit" id="test_logwatch_configured_hostlimit" version="1">
    <ind:object object_ref="object_logwatch_configured_hostlimit" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_logwatch_configured_hostlimit" version="1">
    <ind:filepath>/etc/logwatch/conf/logwatch.conf</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]HostLimit[\s]*=[\s]*no[\s]*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
