In the default graphical environment, screen locking on smartcard removal
can be enabled by setting removal-action
to 'lock-screen'
.
To enable, add or edit removal-action
to
/etc/dconf/db/local.d/00-security-settings
. For example:
[org/gnome/settings-daemon/peripherals/smartcard]
removal-action='lock-screen'
Once the setting has been added, add a lock to
/etc/dconf/db/local.d/locks/00-security-settings-lock
to prevent user modification.
For example:
/org/gnome/settings-daemon/peripherals/smartcard/removal-action
After the settings have been set, run dconf update
.