<def-group>
  <definition class="compliance"
  id="audit_rules_privileged_commands" version="1">
    <metadata>
      <title>Ensure auditd Collects Information on the Use of
      Privileged Commands</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>Audit rules about the Information on the Use of
      Privileged Commands are enabled</description>
    </metadata>
    <criteria operator="OR">
      <criteria>
        <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" />
        </criteria>
        <criterion comment="/etc/audit/audit.rules contains -a exit,always -F path=/bin/ping -F perm=x -F auid&gt;=500 -F auid!=4294967295 -k privileged" test_ref="test_audit_rules_privileged_commands_el4" />
      </criteria>
      <criteria>
        <criteria operator="OR">
	      <extend_definition comment="CentOS 5 is installed" definition_ref="installed_OS_is_centos5" />
	      <extend_definition comment="RedHat 5 is installed" definition_ref="installed_OS_is_rhel5" />
        </criteria>
        <criterion comment="/etc/audit/audit.rules contains -a exit,always -F path=/bin/ping -F perm=x -F auid&gt;=500 -F auid!=4294967295 -k privileged" test_ref="test_audit_rules_privileged_commands_el5" />
      </criteria>
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="at_least_one_exists" comment="/etc/audit/audit.rules contains -a exit,always -F path=/bin/ping -F perm=x -F auid&gt;=500 -F auid!=4294967295 -k privileged" id="test_audit_rules_privileged_commands_el4" version="1">
    <ind:object object_ref="obj_audit_rules_privileged_commands_el4" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_audit_rules_privileged_commands_el4" version="1">
    <ind:path>/etc</ind:path>
    <ind:filename>audit.rules</ind:filename>
    <ind:pattern operation="pattern match">^\-a\sexit,always\s-F\spath=/bin/ping\s-F perm=x\s\-F\sauid&gt;=500\s\-F\sauid!=4294967295\s\-k\sprivileged</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

  <ind:textfilecontent54_test check="all" check_existence="at_least_one_exists" comment="/etc/audit/audit.rules contains -a exit,always -F path=/bin/ping -F perm=x -F auid&gt;=500 -F auid!=4294967295 -k privileged" id="test_audit_rules_privileged_commands_el5" version="1">
    <ind:object object_ref="obj_audit_rules_privileged_commands_el5" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_audit_rules_privileged_commands_el5" version="1">
    <ind:path>/etc/audit</ind:path>
    <ind:filename>audit.rules</ind:filename>
    <ind:pattern operation="pattern match">^\-a\sexit,always\s-F\spath=/bin/ping\s-F perm=x\s\-F\sauid&gt;=500\s\-F\sauid!=4294967295\s\-k\sprivileged</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
