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

</def-group>
