<def-group>
  <definition class="compliance" id="file_permissions_usr_sbin_dir" version="1">
    <metadata>
      <title>File /usr/sbin/* Permissions</title>
      <affected family="unix">
        <platform>CentOS 4</platform>
		<platform>CentOS 5</platform>
		<platform>Red Hat Enterprise Linux 4</platform>
		<platform>Red Hat Enterprise Linux 5</platform>
      </affected>
      <description>File permissions for /usr/sbin/* must be 0755.</description>
    </metadata>
    <criteria>
      <criterion test_ref="test_file_permissions_usr_sbin_dir" />
    </criteria>
  </definition>

  <unix:file_test check="all" check_existence="any_exist" comment="Testing permissions" id="test_file_permissions_usr_sbin_dir" version="1">
    <unix:object object_ref="object_file_permissions_usr_sbin_dir" />
    <unix:state state_ref="state_file_permissions_usr_sbin_dir" />
  </unix:file_test>

  <unix:file_object comment="/usr/sbin/*" id="object_file_permissions_usr_sbin_dir" version="1">
    <unix:path>/usr/sbin</unix:path>
    <unix:filename operation="pattern match">^.*$</unix:filename>
    <filter action="exclude">state_file_permissions_usr_sbin_dir_symlink</filter>
  </unix:file_object>

  <unix:file_state id="state_file_permissions_usr_sbin_dir" version="1">
    <unix:gwrite datatype="boolean">false</unix:gwrite>
    <unix:owrite datatype="boolean">false</unix:owrite>
  </unix:file_state>
  
  <unix:file_state id="state_file_permissions_usr_sbin_dir_symlink" version="1">
    <unix:type operation="equals">symbolic link</unix:type>
  </unix:file_state>

</def-group>
