<def-group>
  <definition class="compliance" id="file_permissions_etc_group" version="2">
    <metadata>
      <title>Verify permissions on 'group' file</title>
      <affected family="unix">
        <platform>multi_platform_rhel</platform>
      </affected>
      <description>File permissions for /etc/group should be set
      correctly.</description>
      <reference source="JL" ref_id="20140403" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion test_ref="test_file_permissions_etc_group" />
    </criteria>
  </definition>
  <unix:file_test check="all" check_existence="all_exist"
  comment="Testing /etc/group permissions" id="test_file_permissions_etc_group"
  version="1">
    <unix:object object_ref="object_file_permissions_etc_group" />
    <unix:state state_ref="state_file_permissions_etc_group" />
  </unix:file_test>
  <unix:file_state id="state_file_permissions_etc_group" version="2">
    <unix:suid datatype="boolean">false</unix:suid>
    <unix:sgid datatype="boolean">false</unix:sgid>
    <unix:sticky datatype="boolean">false</unix:sticky>
    <unix:uexec datatype="boolean">false</unix:uexec>
    <unix:gwrite datatype="boolean">false</unix:gwrite>
    <unix:gexec datatype="boolean">false</unix:gexec>
    <unix:owrite datatype="boolean">false</unix:owrite>
    <unix:oexec datatype="boolean">false</unix:oexec>
  </unix:file_state>
  <unix:file_object comment="/etc/group" id="object_file_permissions_etc_group"
  version="1">
    <unix:filepath>/etc/group</unix:filepath>
  </unix:file_object>
</def-group>
