<def-group>
  <definition class="compliance" id="gconf_gnome_screensaver_mode_blank" version="1">
    <metadata>
      <title>Implement blank screen saver</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>The screen saver should be blank.</description>
      <reference source="MED" ref_id="20131125" ref_url="test_attestation" />
    </metadata>
    <criteria operator="OR">
      <extend_definition comment="GConf2 installed" definition_ref="package_GConf2_installed" negate="true" />
      <criterion comment="gnome screensaver set to blank screen" test_ref="test_gnome_screensaver_mode" />
      <criterion comment="gnome screensaver set to blank screen" test_ref="test_gconf_tree_gnome_screensaver_mode" />
    </criteria>
  </definition>
  <ind:xmlfilecontent_test check="all"
  comment="gnome screensaver set to blank screen"
  id="test_gnome_screensaver_mode" version="1">
    <ind:object object_ref="object_gnome_screensaver_mode" />
    <ind:state state_ref="state_gnome_screensaver_mode" />
  </ind:xmlfilecontent_test>
  <ind:xmlfilecontent_object id="object_gnome_screensaver_mode" version="1">
    <ind:filepath>/etc/gconf/gconf.xml.mandatory/apps/gnome-screensaver/%gconf.xml</ind:filepath>
    <ind:xpath>/gconf/entry[@name='mode']/stringvalue[1]/text()</ind:xpath>
  </ind:xmlfilecontent_object>

  <ind:xmlfilecontent_test check="all"
  comment="gnome screensaver set to blank screen"
  id="test_gconf_tree_gnome_screensaver_mode" version="1">
    <ind:object object_ref="object_gconf_tree_gnome_screensaver_mode" />
    <ind:state state_ref="state_gnome_screensaver_mode" />
  </ind:xmlfilecontent_test>
  <ind:xmlfilecontent_object id="object_gconf_tree_gnome_screensaver_mode" version="1">
    <ind:filepath>/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml</ind:filepath>
    <ind:xpath>/gconf/dir/dir/entry[@name='mode']/stringvalue[1]/text()</ind:xpath>
  </ind:xmlfilecontent_object>

  <ind:xmlfilecontent_state id="state_gnome_screensaver_mode" version="1">
    <ind:value_of datatype="string">blank-only</ind:value_of>
  </ind:xmlfilecontent_state>
</def-group>
