
<def-group>
  <definition class="compliance" id="sshd_includes_config_files" version="1">
    <metadata>
        <title>sshd_includes_config_files</title>
        
    <affected family="unix">
    <platform>Ubuntu 22.04</platform>
    </affected>
        <description>Check presence of Include /etc/ssh/sshd_config.d/*.conf in /etc/ssh/sshd_config</description>
    </metadata>
    <criteria operator="AND" comment="Test conditions - presence of the file plus 0 extra definitions.">
      <criterion comment="Check that /etc/ssh/sshd_config contains a line with certain text" test_ref="test_sshd_includes_config_files" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all"
  comment="tests the presence of 'Include /etc/ssh/sshd_config.d/*.conf' setting in the /etc/ssh/sshd_config file"
  id="test_sshd_includes_config_files" version="1">
  <ind:object object_ref="obj_sshd_includes_config_files" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="obj_sshd_includes_config_files" version="1">
    <ind:filepath>/etc/ssh/sshd_config</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*Include /etc/ssh/sshd_config\.d/\*\.conf[\s]*$</ind:pattern>
    <ind:instance operation="greater than or equal" datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>