<def-group>
  <definition class="compliance" id="no_insecure_locks_exports" version="1">
    <metadata>
      <title>Ensure insecure_locks is disabled</title>
      <affected family="unix">
        <platform>multi_platform_all</platform>
      </affected>
      <description>Allowing insecure file locking could allow for sensitive 
      data to be viewed or edited by an unauthorized user.</description>
      <reference source="galford" ref_id="20140813" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion comment="Check for insecure NFS locks in /etc/exports"
      test_ref="test_no_insecure_locks_exports" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="none_exist"
  comment="Tests the value of the insecure locks in /etc/exports"
  id="test_no_insecure_locks_exports" version="1">
    <ind:object object_ref="obj_no_insecure_locks_exports" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_no_insecure_locks_exports"
  version="2">
    <ind:filepath>/etc/exports</ind:filepath>
    <ind:pattern operation="pattern match">^(.*?(\binsecure_locks\b)[^$]*)$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
