<def-group>
  <definition class="compliance" id="sshd_privilegeseparation" version="1">
    <metadata>
      <title>Ensure Privilege Separation is Enabled</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>The SSH daemon must use privilege separation.</description>
    </metadata>
    <criteria comment="SSH is not being used or conditions are met" operator="OR">
      <extend_definition comment="rpm package openssh-server removed"
      definition_ref="package_openssh-server_removed" />
      <criterion comment="Check UsePrivilegeSeparation in /etc/ssh/sshd_config"
      test_ref="test_sshd_privilegeseparation" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="UsePrivilegeSeparation equals yes" id="test_sshd_privilegeseparation" version="1">
    <ind:object object_ref="object_sshd_privilegeseparation" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_sshd_privilegeseparation" version="2">
    <ind:path>/etc/ssh</ind:path>
    <ind:filename>sshd_config</ind:filename>
    <ind:pattern operation="pattern match">^[\s]*(?i)UsePrivilegeSeparation[\s]+yes[\s]*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
