<def-group>
  <definition class="compliance" id="rsyslog_nolisten" version="2">
    {{{ oval_metadata("rsyslogd should reject remote messages") }}}
    <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 | $ModLoad imtcp | $ModLoad imudp | $ModLoad imrelp"
  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|ModLoad[\s]+(imtcp|imudp|imrelp))</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
