Puppet Class: cis_security_hardening::rules::rng_tools

Defined in:
manifests/rules/rng_tools.pp

Summary

Ensure the system has the packages required to enable the hardware random number generator entropy gatherer service

Overview

The operating system must have the packages required to use the hardware random number generator entropy gatherer service.

Rationale: The most important characteristic of a random number generator is its randomness, namely its ability to deliver random numbers that are impossible to predict. Entropy in computer security is associated with the unpredictability of a source of randomness. The random source with high entropy tends to achieve a uniform distribution of random values. Random number generators are one of the most important building blocks of cryptosystems.

The rngd service feeds random data from hardware device to kernel random device. Quality (non-predictable) random number generation is important for several security functions (i.e., ciphers).

Examples:

class { 'cis_security_hardening::rules::rng_tools':
  enforce => true,
}

Parameters:

  • enforce (Boolean) (defaults to: false)

    Enforce the rule.



24
25
26
27
28
29
30
31
32
# File 'manifests/rules/rng_tools.pp', line 24

class cis_security_hardening::rules::rng_tools (
  Boolean $enforce = false,
) {
  if $enforce {
    ensure_packages(['rng-tools'], {
        ensure => installed,
    })
  }
}