<def-group>
  <definition class="compliance" id="file_owner_etc_passwd" version="1">
    <metadata>
      <title>Verify user who owns 'passwd' file</title>
      <affected family="unix">
        <platform>multi_platform_rhel</platform>
      </affected>
      <description>The /etc/passwd file should be owned by the appropriate
      user.</description>
      <reference source="MED" ref_id="20130807" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion test_ref="test_file_owner_etc_passwd" />
    </criteria>
  </definition>
  <unix:file_test check="all" check_existence="all_exist"
  comment="Testing user ownership" id="test_file_owner_etc_passwd" version="1">
    <unix:object object_ref="object_file_owner_etc_passwd" />
    <unix:state state_ref="state_file_owner_etc_passwd" />
  </unix:file_test>
  <unix:file_state id="state_file_owner_etc_passwd" version="1">
    <unix:user_id datatype="int">0</unix:user_id>
  </unix:file_state>
  <unix:file_object comment="/etc/passwd" id="object_file_owner_etc_passwd"
  version="1">
    <unix:filepath>/etc/passwd</unix:filepath>
  </unix:file_object>
</def-group>
