<def-group>
  <definition class="compliance" id="banner_etc_issue" version="2">
    {{{ oval_metadata("The system login banner text should be set correctly.") }}}
    <criteria>
      <criterion comment="/etc/issue is set appropriately" test_ref="test_banner_etc_issue" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="at least one" check_existence="at_least_one_exists" comment="correct banner in /etc/issue" id="test_banner_etc_issue" version="1">
    <ind:object object_ref="object_banner_etc_issue" />
    <ind:state state_ref="state_banner_etc_issue" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="object_banner_etc_issue" version="1">
    <ind:behaviors singleline="true" multiline="false" />
    <ind:filepath operation="pattern match">^/etc/issue(\.d/.*)?$</ind:filepath>
    <ind:pattern operation="pattern match">^(.*)$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>

  <ind:textfilecontent54_state id="state_banner_etc_issue" version="1">
    <ind:subexpression datatype="string" var_ref="login_banner_text" operation="pattern match" />
  </ind:textfilecontent54_state>

  <external_variable comment="warning banner text variable" datatype="string" id="login_banner_text" version="1" />

</def-group>
