documentation_complete: true

title: 'Ensure rsyslog-gnutls is installed'

description: |-
    TLS protocol support for rsyslog is installed.
    {{% if 'sle' not in product %}}
    {{{ describe_package_install(package="rsyslog-gnutls") }}}
    {{% else %}}
    {{{ describe_package_install(package="rsyslog-module-gtls") }}}
    {{% endif %}}


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

severity: medium

identifiers:
    cce@rhel8: CCE-82859-0
    cce@rhel9: CCE-83987-8
    cce@rhel10: CCE-89106-9
    cce@sle12: CCE-91512-4
    cce@sle15: CCE-91199-0

references:
    srg: SRG-OS-000480-GPOS-00227,SRG-OS-000120-GPOS-00061
    stigid@ol8: OL08-00-030680

ocil_clause: 'the package is not installed'

{{% if 'sle' not in product %}}
{{{ complete_ocil_entry_package(package="rsyslog-gnutls") }}}
{{% else %}}
{{{ complete_ocil_entry_package(package="rsyslog-module-gtls") }}}
{{% endif %}}

template:
    name: package_installed
    vars:
        pkgname: rsyslog-gnutls
        pkgname@sle12: rsyslog-module-gtls
        pkgname@sle15: rsyslog-module-gtls

fixtext: |-
    {{% if 'sle' not in product %}}
    {{{ describe_package_install(package="rsyslog-gnutls") }}}
    {{% else %}}
    {{{ describe_package_install(package="rsyslog-module-gtls") }}}
    {{% endif %}}

srg_requirement:
  {{{ full_name }}} must have the packages required for encrypting offloaded audit logs installed.
