<def-group>
  <definition class="compliance" id="restrict_serial_port_logins" version="1">
    <metadata>
      <title>Restrict Serial Port Root Logins</title>
      <affected family="unix">
        <platform>multi_platform_all</platform>
      </affected>
      <description>Preventing direct root login to serial port interfaces helps
      ensure accountability for actions taken on the system using the root
      account.</description>
      <reference source="galford" ref_id="20141114" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion comment="serial ports /etc/securetty" test_ref="test_serial_ports_etc_securetty" negate="true" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="serial ports /etc/securetty" id="test_serial_ports_etc_securetty" version="1">
    <ind:object object_ref="object_serial_ports_etc_securetty" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object comment="serial ports /etc/securetty" id="object_serial_ports_etc_securetty" version="1">
    <ind:filepath>/etc/securetty</ind:filepath>
    <ind:pattern operation="pattern match">^ttyS[0-9]+$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
