<def-group>
  <definition class="compliance" id="groupowner_shadow_file" version="1">
    <metadata>
      <title>Verify group who owns 'shadow' file</title>
      <affected family="unix">
        <platform>multi_platform_rhel</platform>
      </affected>
      <description>The /etc/shadow file should be owned by the appropriate
      group.</description>
      <reference source="swells" ref_id="20130918" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion test_ref="test_groupowner_etc_shadow" />
    </criteria>
  </definition>
  <unix:file_test check="all" check_existence="all_exist"
  comment="Testing group ownership /etc/shadow" id="test_groupowner_etc_shadow"
  version="1">
    <unix:object object_ref="object_groupowner_shadow_file" />
    <unix:state state_ref="state_groupowner_shadow_file" />
  </unix:file_test>
  <unix:file_state id="state_groupowner_shadow_file" version="1">
    <unix:group_id datatype="int">0</unix:group_id>
  </unix:file_state>
  <unix:file_object comment="/etc/shadow"
  id="object_groupowner_shadow_file" version="1">
    <unix:filepath>/etc/shadow</unix:filepath>
  </unix:file_object>
</def-group>
