Check that vlock is installed to allow session locking
An XCCDF Rule
Description
The SUSE Linux Enterprise 15 operating system must have vlock installed to allow for session locking.
The kbd
package can be installed with the following command:
$ sudo zypper install kbd
Rationale
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. The session lock is implemented at the point where session activity can be determined. Regardless of where the session lock is determined and implemented, once invoked, the session lock must remain in place until the user reauthenticates. No other activity aside from reauthentication must unlock the system.
- ID
- xccdf_org.ssgproject.content_rule_vlock_installed
- Severity
- Medium
- References
- Updated
Remediation - OS Build Blueprint
[[packages]]
name = "kbd"
version = "*"
Remediation - Puppet
include install_kbd
class install_kbd {
package { 'kbd':
ensure => 'installed',
}
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- CCE-83268-3
- DISA-STIG-SLES-15-010110
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel-default; then
zypper install -y "kbd"
else