<def-group>
  <definition class="compliance" id="disable_ctrlaltdel_reboot" version="1">
    <metadata>
      <title>Disable Ctrl-Alt-Del Reboot Activation</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>By default, the system will reboot when the
      Ctrl-Alt-Del key sequence is pressed.</description>
      <reference source="galford" ref_id="20140814" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion comment="Disable Ctrl-Alt-Del key sequence" test_ref="test_disable_ctrlaltdel" />
      <criterion comment="Disable Ctrl-Alt-Del key sequence override exists" test_ref="test_disable_ctrlaltdel_exists" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="Disable Ctrl-Alt-Del key sequence" id="test_disable_ctrlaltdel" version="1">
    <ind:object object_ref="object_test_disable_ctrlaltdel" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object comment="Disable Ctrl-Alt-Del key sequence" id="object_test_disable_ctrlaltdel" version="1">
    <ind:filepath>/etc/init/control-alt-delete.override</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*exec[\s]*/sbin/shutdown[\s]*\-r[\s]*now.*$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>

  <unix:file_test check="all" check_existence="all_exist" comment="Disable Ctrl-Alt-Del key sequence override exists" id="test_disable_ctrlaltdel_exists" version="1">
    <unix:object object_ref="object_test_disable_ctrlaltdel_exists" />
  </unix:file_test>
  <unix:file_object comment="Disable Ctrl-Alt-Del key sequence override exists" id="object_test_disable_ctrlaltdel_exists" version="1">
    <unix:filepath>/etc/init/control-alt-delete.override</unix:filepath>
  </unix:file_object>
</def-group>
