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
Updated

Remediation Templates

An Ansible Snippet

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - CCE-92320-1
  - NIST-800-53-AU-12(3)

A Puppet Snippet

include install_audit-libs
class install_audit-libs {
  package { 'audit-libs':
    ensure => 'installed',
  }
}

OS Build Blueprint

[[packages]]
name = "audit-libs"
version = "*"

A Shell Script

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

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