<def-group>
  <definition class="compliance" id="audit_rules_time_stime" version="1">
    <metadata>
      <title>Record Attempts to Alter Time Through Stime</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>Record attempts to alter time through stime. Note that on
      64-bit architectures the stime system call is not defined in the audit
      system calls lookup table.</description>
      <reference source="JL" ref_id="RHEL6_20141201" ref_url="test_attestation"/>
    </metadata>
    <criteria comment="32-bit or 64-bit system and 32-bit arch stime line and key present" operator="AND">
      <criteria comment="32-bit or 64-bit system" operator="OR">
        <extend_definition comment="32-bit system"
        definition_ref="system_info_architecture_x86" />
        <extend_definition comment="64-bit system"
        definition_ref="system_info_architecture_x86_64" />
      </criteria>
      <criterion comment="32-bit arch stime line and key present"
      test_ref="test_audit_rules_time_stime_x86" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all"
  check_existence="at_least_one_exists"
  comment="Tests the for presence of 32bit -S stime and key"
  id="test_audit_rules_time_stime_x86" version="1">
    <ind:object object_ref="obj_audit_rules_time_stime_x86" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="obj_audit_rules_time_stime_x86" version="1">
    <ind:filepath>/etc/audit/audit.rules</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*-a[\s]+always,exit[\s]+-F[\s]+arch=b32.*-S[\s]+stime[\s]+.*-k[\s]+[\S]+[\s]*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
