Skip to content

Ensure rsyslog-gnutls is installed

An XCCDF Rule

Description

TLS protocol support for rsyslog is installed. The rsyslog-module-gtls package can be installed with the following command:
$ sudo zypper install rsyslog-module-gtls

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

A Puppet Snippet

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

An Ansible Snippet

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - CCE-91512-4
  - enable_strategy

OS Build Blueprint

[[packages]]
name = "rsyslog-module-gtls"
version = "*"

A Shell Script

# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel-default; then
zypper install -y "rsyslog-module-gtls"

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