<def-group>
  <definition class="compliance" id="ensure_gpgcheck_never_disabled"
  version="1">
    <metadata>
      <title>Ensure gpgcheck Enabled For All Yum Package Repositories</title>
      <affected family="unix">
        <platform>multi_platform_all</platform>
      </affected>
      <description>Ensure all yum repositories utilize signature checking.</description>
      <reference source="MED" ref_id="20130807" ref_url="test_attestation" />
      <!-- rhel7 <reference source="SDW" ref_id="20131223" ref_url="test_attestation" /> -->
    </metadata>
    <criteria comment="ensure all yum repositories utilize signiature checking" operator="AND">
      <criterion comment="verify no gpgpcheck=0 present in /etc/yum.repos.d files"
      test_ref="test_ensure_gpgcheck_never_disabled" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="none_exist"
  comment="check for existence of gpgcheck=0 in /etc/yum.repos.d/ files"
  id="test_ensure_gpgcheck_never_disabled" version="1">
    <ind:object object_ref="obj_ensure_gpgcheck_never_disabled" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_ensure_gpgcheck_never_disabled"
  version="1">
    <ind:path>/etc/yum.repos.d</ind:path>
    <ind:filename operation="pattern match">.*</ind:filename>
    <ind:pattern operation="pattern match">^\s*gpgcheck\s*=\s*0\s*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
