<def-group>
    <definition class="compliance" id="sudo_add_ignore_dot" version="1">
    <metadata>
        <title>Ensure sudo Ignores Commands In Current Dir - sudo ignore_dot</title>
        
    <affected family="unix">
    <platform>Ubuntu 22.04</platform>
    </affected>
        <description>Checks sudoers Defaults ignore_dot configuration</description>
    </metadata>
    <criteria >
        <criterion comment="ignore_dot is configured in /etc/sudoers or /etc/sudoers.d/" test_ref="test_ignore_dot_sudoers" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="at_least_one_exists" id="test_ignore_dot_sudoers"
      comment="ignore_dot exists in /etc/sudoers or /etc/sudoers.d/" version="1">
  <ind:object object_ref="object_ignore_dot_sudoers" />

  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_ignore_dot_sudoers" version="1">
    <ind:filepath operation="pattern match">^/etc/sudoers(|\.d/.*)$</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*Defaults\b[^!\n]*\bignore_dot.*$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal" >1</ind:instance>
  </ind:textfilecontent54_object>


</def-group>