Puppet Class: cis_security_hardening::rules::gdm_screensaver
- Defined in:
- manifests/rules/gdm_screensaver.pp
Summary
Ensure GNOME Screensaver period of inactivity is configuredOverview
The operating system must initiate a screensaver after a 15-minute period of inactivity for graphical user interfaces.
Rationale: A session time-out lock with the screensaver is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not log out because of the temporary nature of the absence. Rather than relying on the user to manually lock their operating system session prior to vacating the vicinity, operating systems need to be able to identify when a user’s session has idled and take action to initiate the session lock.
The screensaver is implemented at the point where session activity can be determined and/or controlled.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'manifests/rules/gdm_screensaver.pp', line 27
class cis_security_hardening::rules::gdm_screensaver (
Boolean $enforce = false,
Integer $timeout = 900,
) {
$gnome_gdm = fact('cis_security_hardening.gnome_gdm')
if $enforce and $gnome_gdm != undef and $gnome_gdm {
include dconf
dconf::db { 'screensaver-timeout':
db_dir => "${dconf::db_base_dir}/local.d",
db_filename => '03-screensaver-timeout',
locks_filename => '03-screensaver-timeout',
settings => {
'org/gnome/desktop/session' => {
'idle-delay' => "uint32 ${timeout}",
},
},
locks => [
'/org/gnome/desktop/session/idle-delay',
],
}
}
}
|