{"description": "\nTo activate locking of the screensaver in the GNOME3 desktop when it is activated,\nadd or set <tt>lock-enabled</tt> to <tt>true</tt> in\n<tt>/etc/dconf/db/local.d/00-security-settings</tt>. For example:\n<pre>[org/gnome/desktop/screensaver]\nlock-enabled=true\n</pre>\nOnce the settings have been added, add a lock to\n<tt>/etc/dconf/db/local.d/locks/00-security-settings-lock</tt> to prevent user modification.\nFor example:\n<pre>/org/gnome/desktop/screensaver/lock-enabled</pre>\nAfter the settings have been set, run <tt>dconf update</tt>.", "rationale": "A session lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity\nof the information system but does not want to logout because of the temporary nature of the absence.", "severity": "medium", "references": {"cis-csc": ["1", "12", "15", "16"], "cjis": ["5.5.5"], "cobit5": ["DSS05.04", "DSS05.10", "DSS06.10"], "cui": ["3.1.10"], "isa-62443-2009": ["4.3.3.6.1", "4.3.3.6.2", "4.3.3.6.3", "4.3.3.6.4", "4.3.3.6.5", "4.3.3.6.6", "4.3.3.6.7", "4.3.3.6.8", "4.3.3.6.9"], "isa-62443-2013": ["SR 1.1", "SR 1.10", "SR 1.2", "SR 1.5", "SR 1.7", "SR 1.8", "SR 1.9"], "iso27001-2013": ["A.18.1.4", "A.9.2.1", "A.9.2.4", "A.9.3.1", "A.9.4.2", "A.9.4.3"], "nist": ["CM-6(a)"], "nist-csf": ["PR.AC-7"], "pcidss": ["Req-8.1.8"], "srg": ["SRG-OS-000028-GPOS-00009", "SRG-OS-000030-GPOS-00011"], "cis": ["1.7.4", "1.7.5"], "pcidss4": ["8.2.8", "8.2"], "stigid": ["UBTU-22-271020"], "stigref": ["SV-260537r958400_rule"]}, "control_references": {"cis": ["1.7.4", "1.7.5"], "pcidss4": ["8.2.8", "8.2"], "stigid": ["UBTU-22-271020"]}, "components": [], "identifiers": {}, "ocil_clause": "screensaver locking is not enabled and/or has not been set or configured correctly", "ocil": "To check the status of the idle screen lock activation, run the following command:\n\n<pre>$ gsettings get org.gnome.desktop.screensaver lock-enabled</pre>\nIf properly configured, the output should be <tt>true</tt>.\nTo ensure that users cannot change how long until the screensaver locks, run the following:\n<pre>$ grep lock-enabled /etc/dconf/db/local.d/locks/*</pre>\nIf properly configured, the output for <tt>lock-enabled</tt> should be <tt>/org/gnome/desktop/screensaver/lock-enabled</tt>", "oval_external_content": null, "fixtext": "The dconf settings can be edited in the /etc/dconf/db/* location.\n\nFirst, add or update the [org/gnome/desktop/screensaver/lock-enabled] section of the \"/etc/dconf/db/local.d/00-security-settings\" database file and add or update the following lines:\n\n[org/gnome/desktop/screensaver/lock-enabled]\nlock-enabled=true\n\nThen, add the following line to \"/etc/dconf/db/local.d/locks/00-security-settings-lock\" to prevent user modification:\n\n/org/gnome/desktop/screensaver/lock-enabled/lock-enabled\n\nFinally, update the dconf system databases:\n\n$ sudo dconf update", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 must enable a user session lock until that user re-establishes access using established identification and authentication procedures for graphical user sessions.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must prevent a user from overriding the screensaver lock-enabled setting for the graphical user interface.", "vuldiscussion": "A session time-out lock 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.\n\nThe session lock is implemented at the point where session activity can be determined and/or controlled.\n\nImplementing session settings will have little value if a user is able to manipulate these settings from the defaults prescribed in the other requirements of this implementation guide.", "checktext": "Note: This requirement assumes the use of the Ubuntu 22.04 default graphical user interface, Gnome Shell. If the system does not have any graphical user interface installed, this requirement is Not Applicable.\n\nVerify Ubuntu 22.04 prevents a user from overriding settings for graphical user interfaces.\n\n$ gsettings writable org.gnome.desktop.screensaver lock-enabled\n\nfalse\n\nIf \"lock-enabled\" is writable and the result is \"true\", this is a finding.", "fixtext": "Configure Ubuntu 22.04 to prevent a user from overriding settings for graphical user interfaces.\n\nCreate a database to contain the systemwide screensaver settings (if it does not already exist) with the following command:\n\nNote: The example below is using the database \"local\" for the system. If the system is using another database in \"/etc/dconf/profile/user\", the file should be created under the appropriate subdirectory.\n\n$ sudo touch /etc/dconf/db/local.d/locks/session\n\nAdd the following setting to prevent nonprivileged users from modifying it:\n\n/org/gnome/desktop/screensaver/lock-enabled\n\nRun the following command to update the database:\n\n$ sudo dconf update"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["package[gdm]"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["package_gdm"], "bash_conditional": null, "fixes": {}, "title": "Enable GNOME3 Screensaver Lock After Idle Period", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/software/gnome/gnome_screen_locking/dconf_gnome_screensaver_lock_enabled/rule.yml", "template": null}