<def-group>
  <definition class="compliance" id="auditd_audispd_syslog_plugin_activated" version="1">
    <metadata>
      <title>The syslog Plugin Of the Audit Event Multiplexor (audispd) Is Activated</title>
      <affected family="unix">
        <platform>multi_platform_all</platform>
      </affected>
      <description>active setting in /etc/audisp/plugins.d/syslog.conf is set to 'yes'</description>
      <reference source="JL" ref_id="RHEL6_20150817" ref_url="test_attestation" />
      <reference source="JL" ref_id="RHEL7_20150817" ref_url="test_attestation" />
      <reference source="JL" ref_id="FEDORA22_20150817" ref_url="test_attestation" />
    </metadata>

    <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>/etc/audisp/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>
