<def-group>
  <definition class="compliance" id="rsyslog_nolisten" version="2">
    <metadata>
      <title>Disable Rsyslogd from Accepting Remote Messages on Loghosts
      Only</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>rsyslogd should reject remote messages</description>
      <reference source="JL" ref_id="20140407" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion comment="Conditions are satisfied"
      test_ref="test_rsyslog_nolisten" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="none_exist"
  comment="Ensure that the /etc/rsyslog.conf does not contain $InputTCPServerRun | $UDPServerRun | $InputRELPServerRun"
  id="test_rsyslog_nolisten" version="1">
    <ind:object object_ref="object_rsyslog_nolisten" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_rsyslog_nolisten" version="2">
    <ind:filepath>/etc/rsyslog.conf</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*\$(?:Input(?:TCP|RELP)|UDP)ServerRun</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
