{"description": "In the default graphical environment, screen locking on smartcard removal\ncan be enabled by setting <tt>removal-action</tt>\nto <tt>'lock-screen'</tt>.\n<br /><br />\nTo enable, add or edit <tt>removal-action</tt> to\n<tt>/etc/dconf/db/local.d/00-security-settings</tt>. For example:\n<pre>[org/gnome/settings-daemon/peripherals/smartcard]\nremoval-action='lock-screen'</pre>\nOnce the setting has 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/settings-daemon/peripherals/smartcard/removal-action</pre>\nAfter the settings have been set, run <tt>dconf update</tt>.", "rationale": "Locking the screen automatically when removing the smartcard can\nprevent undesired access to system.", "severity": "medium", "references": {"srg": ["SRG-OS-000028-GPOS-00009", "SRG-OS-000030-GPOS-00011"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "removal-action has not been configured", "ocil": "To ensure screen locking on smartcard removal is enabled, run the following command:\n<pre>$ grep removal-action /etc/dconf/db/local.d/*</pre>\nThe output should be <tt>'lock-screen'</tt>.\nTo ensure that users cannot disable screen locking on smartcard removal, run the following:\n<pre>$ grep removal-action /etc/dconf/db/local.d/locks/*</pre>\nIf properly configured, the output should be <tt>/org/gnome/settings-daemon/peripherals/smartcard/removal-action</tt>", "oval_external_content": null, "fixtext": "The dconf settings can be edited in the /etc/dconf/db/* location.\n\n  First, add or update the [org/gnome/settings-daemon/peripherals/smartcard] section of the \"/etc/dconf/db/local.d/00-security-settings\" database file and add or update the following lines:\n\n  [org/gnome/settings-daemon/peripherals/smartcard]\n  removal-action='lock-screen'\n\n  Then, add the following line to \"/etc/dconf/db/local.d/locks/00-security-settings-lock\" to prevent user modification:\n\n  /org/gnome/settings-daemon/peripherals/smartcard/removal-action\n\n  Finally, update the dconf system databases:\n\n  $ sudo dconf update", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 must be able to initiate directly a session lock for all connection types using smartcard when the smartcard is removed.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must prevent a user from overriding the disabling of the graphical user smart card removal action.", "vuldiscussion": "A session 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 want to log out because of the temporary nature of the absence.\n\nThe session lock is implemented at the point where session activity can be determined. Rather than be forced to wait for a period of time to expire before the user session can be locked, Ubuntu 22.04 needs to provide users with the ability to manually invoke a session lock so users can secure their session if it is necessary to temporarily vacate the immediate physical vicinity.", "checktext": "Note: This requirement assumes the use of the Ubuntu 22.04 default graphical user interface, the GNOME desktop environment. If the system does not have any graphical user interface installed, this requirement is Not Applicable.\n\nVerify Ubuntu 22.04 disables ability of the user to override the smart card removal action setting.\n\n$ gsettings writable org.gnome.settings-daemon.peripherals.smartcard removal-action\n\nfalse\n\nIf \"removal-action\" is writable and the result is \"true\", this is a finding.", "fixtext": "Add the following line to \"/etc/dconf/db/local.d/locks/00-security-settings-lock\" to prevent user override of the smart card removal action:\n\n/org/gnome/settings-daemon/peripherals/smartcard/removal-action\n\nThen update the dconf system databases:\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 the GNOME3 Screen Locking On Smartcard Removal", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/software/gnome/gnome_login_screen/dconf_gnome_lock_screen_on_smartcard_removal/rule.yml", "template": {"name": "dconf_ini_file", "vars": {"parameter": "removal-action", "value": "'lock-screen'", "section": "org/gnome/settings-daemon/peripherals/smartcard", "path": "/etc/dconf/db/local.d/"}, "backends": {}}}