<def-group>
  <definition class="compliance" id="auditd_audispd_syslog_plugin_activated" version="1">
    {{{ oval_metadata("active setting in " + audisp_conf_path + "/plugins.d/syslog.conf is set to 'yes'") }}}

    <criteria>
        <criterion comment="active setting in syslog.conf" test_ref="test_auditd_audispd_syslog_plugin_activated" />
    </criteria>

  </definition>

  <ind:textfilecontent54_test check="all" comment="audispd syslog plugin activated" id="test_auditd_audispd_syslog_plugin_activated" version="1">
    <ind:object object_ref="object_auditd_audispd_syslog_plugin_activated" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="object_auditd_audispd_syslog_plugin_activated" version="1">
    <ind:filepath>{{{ audisp_conf_path }}}/plugins.d/syslog.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">^[ ]*active[ ]+=[ ]+yes[ ]*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
