<def-group>
  <definition class="compliance" id="ensure_gpgcheck_globally_activated" version="1">
    {{{ oval_metadata("The gpgcheck option should be used to ensure that checking
      of an RPM package's signature always occurs prior to its
      installation.") }}}
    <criteria operator="AND">
     <criterion comment="check value of gpgcheck in {{{ pkg_manager_config_file }}}" test_ref="test_ensure_gpgcheck_globally_activated" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="check value of gpgcheck in {{{ pkg_manager_config_file }}}" id="test_ensure_gpgcheck_globally_activated" version="1">
    <ind:object object_ref="object_ensure_gpgcheck_globally_activated" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_ensure_gpgcheck_globally_activated" comment="gpgcheck set in {{{ pkg_manager_config_file }}}" version="1">
    <ind:filepath>{{{ pkg_manager_config_file }}}</ind:filepath>
    <ind:pattern operation="pattern match">^\s*gpgcheck\s*=\s*1\s*$</ind:pattern>
    <ind:instance datatype="int" operation="equals">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
