<def-group>
  <definition class="compliance" id="dconf_gnome_screensaver_user_info" version="1">
    {{{ oval_metadata("GNOME3 screen splash shield should not display full name of logged in user.") }}}
    <criteria operator="OR">
      <extend_definition comment="dconf installed" definition_ref="package_dconf_installed" negate="true" />
      <criteria comment="Disable screensaver user info and prevent user from changing it" operator="AND">
        <extend_definition comment="dconf user profile exists" definition_ref="enable_dconf_user_profile" />
        <criterion comment="screensaver user info is disabled" test_ref="test_screensaver_disable_user_info" />
        <criterion comment="screensaver prevent user from changing" test_ref="test_prevent_user_info_change" />
      </criteria>
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="screensaver user info is disabled"
  id="test_screensaver_disable_user_info" version="1">
    <ind:object object_ref="obj_screensaver_disable_user_info" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_screensaver_disable_user_info"
  version="1">
    <ind:path>/etc/dconf/db/local.d/</ind:path>
    <ind:filename operation="pattern match">^.*$</ind:filename>
    <ind:pattern operation="pattern match">^\[org/gnome/desktop/screensaver\]([^\n]*\n+)+?show-full-name-in-top-bar=false$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="screensaver prevent user from changing"
  id="test_prevent_user_info_change" version="1">
    <ind:object object_ref="obj_prevent_user_info_change" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_prevent_user_info_change"
  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/show-full-name-in-top-bar$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
