Install the pcsc-lite package
An XCCDF Rule
Description
The pcsc-lite
package can be installed with the following command:
$ sudo dnf install pcsc-lite
Rationale
The pcsc-lite package must be installed if it is to be available for multifactor authentication using smartcards.
- ID
- xccdf_org.ssgproject.content_rule_package_pcsc-lite_installed
- Severity
- Medium
- References
- Updated
Remediation - Ansible
- name: Ensure pcsc-lite is installed
package:
name: pcsc-lite
state: present
when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"]
tags:
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
if ! rpm -q --quiet "pcsc-lite" ; then
dnf install -y "pcsc-lite"
fi
Remediation - Anaconda Pre-Install Instructions
package --add=pcsc-lite
Remediation - OS Build Blueprint
[[packages]]
name = "pcsc-lite"
version = "*"
Remediation - Puppet
include install_pcsc-lite
class install_pcsc-lite {
package { 'pcsc-lite':
ensure => 'installed',
}