<def-group>
  <definition class="compliance" id="{{{ rule_id }}}" version="1">
    {{{ oval_metadata("Direct root Logins Are Not Allowed", rule_title=rule_title) }}}
    <criteria>
      <criterion comment="verify root account is locked"
          test_ref="test_root_access_locked_etc_shadow" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="only_one_exists"
      version="1" id="test_root_access_locked_etc_shadow"
      comment="make sure root account is locked in /etc/shadow">
    <ind:object object_ref="obj_root_access_locked_etc_shadow" />
    <ind:state state_ref="state_oot_access_locked_etc_shadow"/>
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_root_access_locked_etc_shadow" version="1">
    <ind:filepath>/etc/shadow</ind:filepath>
    <ind:pattern operation="pattern match">^root:([^:]*):(?:[^:]*:){6}(?:[^:]*)$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

  <ind:textfilecontent54_state id="state_oot_access_locked_etc_shadow" version="1">
      <ind:subexpression operation="pattern match">^(\!|\*).*$</ind:subexpression>
  </ind:textfilecontent54_state>

</def-group>
