Skip to content

Install the pam_apparmor Package

An XCCDF Rule

Description

The pam_apparmor package can be installed with the following command:

$ sudo zypper install pam_apparmor

Rationale

Protection of system integrity using AppArmor depends on this package being installed.

ID
xccdf_org.ssgproject.content_rule_package_pam_apparmor_installed
Severity
Medium
References
Updated



Remediation - OS Build Blueprint


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

Remediation - Ansible

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

Remediation - Puppet

include install_pam_apparmor

class install_pam_apparmor {
  package { 'pam_apparmor':
    ensure => 'installed',
  }

Remediation - Shell Script

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

zypper install -y "pam_apparmor"

else