Skip to content

Ensure the libaudit1 package as a part of audit Subsystem is Installed

An XCCDF Rule

Description

The libaudit1 package should be installed.

Rationale

The auditd service is an access monitoring and accounting daemon, watching system calls to audit any access, in comparison with potential local access control policy such as SELinux policy.

ID
xccdf_org.ssgproject.content_rule_package_audit-libs_installed
Severity
Medium
References
Updated



Remediation - Puppet

include install_libaudit1

class install_libaudit1 {
  package { 'libaudit1':
    ensure => 'installed',
  }

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then

zypper install -y "libaudit1"

else

Remediation - OS Build Blueprint


[[packages]]
name = "libaudit1"
version = "*"

Remediation - Ansible

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