<def-group>
  <definition class="compliance" id="gconf_gnome_screensaver_idle_delay" version="1">
    <metadata>
      <title>Configure GUI Screen Locking</title>
      <affected family="unix">
        <platform>CentOS 4</platform>
		<platform>CentOS 5</platform>
		<platform>Red Hat Enterprise Linux 4</platform>
		<platform>Red Hat Enterprise Linux 5</platform>
      </affected>
      <description>The allowed period of inactivity before the screensaver is activated.</description>
    </metadata>
    <criteria>
      <criterion comment="check value of idle_delay in GCONF" test_ref="test_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/apps/gnome-screensaver/%gconf.xml</ind:filepath>
    <ind:xpath datatype="string" operation="equals">/gconf/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>
