<def-group>
  <definition class="compliance" id="dconf_gnome_screensaver_user_locks" version="1">
    {{{ oval_metadata("Ensure that users cannot change GNOME3 screensaver idle and lock settings.") }}}
    <criteria operator="OR">
      <extend_definition comment="dconf installed" definition_ref="package_dconf_installed" negate="true" />
      <criteria comment="check screensaver idle delay and prevent user from changing it" operator="AND">
        <extend_definition comment="dconf user profile exists" definition_ref="enable_dconf_user_profile" />
        <criterion comment="prevent user from changing screensaver lock delay" test_ref="test_user_change_lock_delay_lock" />
      </criteria>
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="screensaver lock delay cannot be changed by user"
  id="test_user_change_lock_delay_lock" version="1">
    <ind:object object_ref="obj_user_change_lock_delay_lock" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_user_change_lock_delay_lock"
  version="1">
    <ind:path>/etc/dconf/db/local.d/locks/</ind:path>
    <ind:filename operation="pattern match">^.*$</ind:filename>
    <ind:pattern operation="pattern match">^/org/gnome/desktop/screensaver/lock-delay$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
