Skip to content

Ensure rsyslog-gnutls is installed

An XCCDF Rule

Description

TLS protocol support for rsyslog is installed. The rsyslog-gnutls package can be installed with the following command:
$ apt-get install rsyslog-gnutls

Rationale

The rsyslog-gnutls package provides Transport Layer Security (TLS) support for the rsyslog daemon, which enables secure remote logging.

ID
xccdf_org.ssgproject.content_rule_package_rsyslog-gnutls_installed
Severity
Medium
References
Updated

Remediation Templates

An Ansible Snippet

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

A Puppet Snippet

include install_rsyslog-gnutls
class install_rsyslog-gnutls {
  package { 'rsyslog-gnutls':
    ensure => 'installed',
  }
}

OS Build Blueprint

[[packages]]
name = "rsyslog-gnutls"
version = "*"

A Shell Script

# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
DEBIAN_FRONTEND=noninteractive apt-get install -y "rsyslog-gnutls"

else
    >&2 echo 'Remediation is not applicable, nothing was done'
fi