<def-group>
  <definition class="compliance" id="file_permissions_extended_etc_xinetd_dir" version="1">
    <metadata>
      <title>File /etc/xinetd.d/* Extended ACLs</title>
      <affected family="unix">
		<platform>CentOS 5</platform>
		<platform>Red Hat Enterprise Linux 5</platform>
      </affected>
      <description>File permissions for /etc/xinetd.d/* should not have extended ACLs.</description>
    </metadata>
    <criteria operator="OR">
	  <extend_definition comment="CentOS 4 is installed" definition_ref="installed_OS_is_centos4" />
	  <extend_definition comment="RedHat 4 is installed" definition_ref="installed_OS_is_rhel4" />
      <criterion test_ref="test_file_permissions_extended_etc_xinetd_dir" />
    </criteria>
  </definition>

  <unix:file_test check="all" check_existence="any_exist" comment="Testing extended ACLs of /etc/xinetd.d/*" id="test_file_permissions_extended_etc_xinetd_dir" version="1">
    <unix:object object_ref="object_file_permissions_extended_etc_xinetd_dir" />
    <unix:state state_ref="state_file_permissions_extended_etc_xinetd_dir" />
  </unix:file_test>
  <unix:file_object comment="/etc/xinetd.d/*" id="object_file_permissions_extended_etc_xinetd_dir" version="1">
    <unix:path>/etc/xinetd.d</unix:path>
    <unix:filename operation="pattern match">.*</unix:filename>
  </unix:file_object>

  <unix:file_state id="state_file_permissions_extended_etc_xinetd_dir" version="1">
    <unix:has_extended_acl datatype="boolean">false</unix:has_extended_acl>
  </unix:file_state>
</def-group>
