Enable the Hardware RNG Entropy Gatherer Service
An XCCDF Rule
Description
The Hardware RNG Entropy Gatherer service should be enabled.
The rngd
service can be enabled with the following command:
$ sudo systemctl enable rngd.service
Rationale
The rngd
service
feeds random data from hardware device to kernel random device.
- ID
- xccdf_org.ssgproject.content_rule_service_rngd_enabled
- Severity
- Low
- References
- Updated
Remediation - OS Build Blueprint
[customizations.services]
enabled = ["rngd"]
Remediation - Ansible
- name: Enable service rngd
block:
- name: Gather the package facts
package_facts:
manager: auto
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" unmask 'rngd.service'
"$SYSTEMCTL_EXEC" start 'rngd.service'
Remediation - Puppet
include enable_rngd
class enable_rngd {
service {'rngd':
enable => true,
ensure => 'running',