Skip to content

Install rng-tools Package

An XCCDF Rule

Description

The rng-tools package can be installed with the following command:

$ sudo dnf install rng-tools

Rationale

rng-tools provides hardware random number generator tools, such as those used in the formation of x509/PKI certificates.

ID
xccdf_org.ssgproject.content_rule_package_rng-tools_installed
Severity
Low
References
Updated



Remediation - Puppet

include install_rng-tools

class install_rng-tools {
  package { 'rng-tools':
    ensure => 'installed',
  }

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then

if ! rpm -q --quiet "rng-tools" ; then
    dnf install -y "rng-tools"
fi

Remediation - Anaconda Pre-Install Instructions


package --add=rng-tools

Remediation - OS Build Blueprint


[[packages]]
name = "rng-tools"
version = "*"

Remediation - Ansible

- name: Ensure rng-tools is installed
  package:
    name: rng-tools
    state: present
  when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"]
  tags: