<def-group>
 <!-- THIS FILE IS GENERATED by create_permission_checks.py.  DO NOT EDIT.  -->
  <definition class="compliance" id="file_permissionsFILEID" version="1">
    <metadata>
      <title>Verify FILEPATH Permissions</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>This test makes sure that FILEPATH is owned by FILEUID, group owned by FILEGID, and has mode FILEMODE. If
      the target file or directory has an extended ACL then it will fail the mode check.</description>
    </metadata>
    <criteria>
      <criterion test_ref="testFILEID" />
    </criteria>
  </definition>
  <unix:file_test check="all" check_existence="all_exist" comment="FILEPATH mode and ownership" id="testFILEID" version="1">
    <unix:object object_ref="objectFILEID" />
    <unix:state state_ref="state_uid_FILEUID" />
    <unix:state state_ref="state_gid_FILEGID" />
    <unix:state state_ref="state_mode_FILEMODE" />
  </unix:file_test>
  <unix:file_object comment="FILEPATH" id="objectFILEID" version="1">
    <unix:path>FILEDIR</unix:path>
    UNIX_FILENAME
  </unix:file_object>
  <unix:file_state id="state_uid_FILEUID" version="1">
    <unix:user_id datatype="int" operation="equals">FILEUID</unix:user_id>
  </unix:file_state>
  <unix:file_state id="state_gid_FILEGID" version="1">
    <unix:group_id datatype="int" operation="equals">FILEGID</unix:group_id>
  </unix:file_state>
  <unix:file_state id="state_mode_FILEMODE" version="1">
STATEMODE
</def-group>
