<def-group>
  <definition class="compliance" id="gconf_gnome_screensaver_idle_delay" version="2">
    <metadata>
      <title>Configure GUI Screen Locking</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>The allowed period of inactivity before the screensaver is
      activated.</description>
      <reference source="SDW" ref_id="20140522" ref_url="test_attestation" />
    </metadata>
    <criteria operator="OR">
      <extend_definition comment="GConf2 installed" definition_ref="package_GConf2_installed" negate="true" />
      <criterion comment="check value of idle_delay in GCONF" test_ref="test_gnome_screensaver_idle_delay" />
      <criterion comment="check value of idle_delay in GCONF" test_ref="test_gconf_tree_gnome_screensaver_idle_delay" />
    </criteria>
  </definition>
  <ind:xmlfilecontent_test check="all"
  comment="test screensaver timeout period"
  id="test_gnome_screensaver_idle_delay" version="1">
    <ind:object object_ref="object_gnome_screensaver_idle_delay" />
    <ind:state state_ref="state_gnome_screensaver_idle_delay" />
  </ind:xmlfilecontent_test>
  <ind:xmlfilecontent_object id="object_gnome_screensaver_idle_delay" version="1">
    <ind:filepath>/etc/gconf/gconf.xml.mandatory/desktop/gnome/session/%gconf.xml</ind:filepath>
    <ind:xpath>/gconf/entry[@name='idle_delay']/@value</ind:xpath>
  </ind:xmlfilecontent_object>

  <ind:xmlfilecontent_test check="all"
  comment="test screensaver timeout period"
  id="test_gconf_tree_gnome_screensaver_idle_delay" version="1">
    <ind:object object_ref="object_gconf_tree_gnome_screensaver_idle_delay" />
    <ind:state state_ref="state_gnome_screensaver_idle_delay" />
  </ind:xmlfilecontent_test>
  <ind:xmlfilecontent_object id="object_gconf_tree_gnome_screensaver_idle_delay" version="1">
    <ind:filepath>/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml</ind:filepath>
    <ind:xpath>/gconf/dir/dir/dir/entry[@name='idle_delay']/@value</ind:xpath>
  </ind:xmlfilecontent_object>

  <ind:xmlfilecontent_state comment="idle timeout"
  id="state_gnome_screensaver_idle_delay" version="1">
    <ind:value_of datatype="int" operation="less than or equal" var_check="all"
    var_ref="inactivity_timeout_value" />
  </ind:xmlfilecontent_state>
  <external_variable comment="inactivity timeout variable" datatype="int"
  id="inactivity_timeout_value" version="1" />
</def-group>
