<def-group>
  <definition class="compliance" id="configure_bind_crypto_policy" version="1">
    {{{ oval_metadata("BIND should be configured to use the system-wide crypto policy setting.") }}}
    <criteria operator="OR">
      <extend_definition comment="Check if package bind is not installed" definition_ref="package_bind_removed" />
      <criterion test_ref="test_configure_bind_crypto_policy"
      comment="Check that the configuration includes the policy config file." />
    </criteria>
  </definition>

  <ind:textfilecontent54_test id="test_configure_bind_crypto_policy"
  comment="Check that the configuration includes the policy config file."
  check="all" check_existence="all_exist" version="1">
    <ind:object object_ref="object_configure_bind_crypto_policy" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="object_configure_bind_crypto_policy"
  version="1">
    <ind:filepath>/etc/named.conf</ind:filepath>
    <ind:pattern operation="pattern match">^\s*include\s+"/etc/crypto-policies/back-ends/bind.config"\s*;\s*$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
