<def-group>
  <definition class="compliance" id="set_firewalld_default_zone" version="2">
    <metadata>
      <title>Change the default firewalld zone to drop</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 7</platform>
        <platform>multi_platform_fedora</platform>
      </affected>
      <description>Change the default firewalld zone to drop.</description>
      <reference source="galford" ref_id="20150122" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion comment="Set default zone to drop" test_ref="test_firewalld_input_drop" />
    </criteria>
  </definition>
  
  <ind:textfilecontent54_test check="all"
    check_existence="all_exist"
    comment="Check /etc/firewalld/firewalld.conf DefaultZone for drop"
    id="test_firewalld_input_drop" version="1">
    <ind:object object_ref="obj_firewalld_input_drop" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="obj_firewalld_input_drop" version="1">
    <ind:filepath>/etc/firewalld/firewalld.conf</ind:filepath>
    <ind:pattern operation="pattern match">^DefaultZone=drop$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
