Skip to content

Install policycoreutils-python-utils package

An XCCDF Rule

Description

The policycoreutils-python-utils package can be installed with the following command:
$ sudo zypper install policycoreutils-python-utils

Rationale

This package is required to operate and manage an SELinux environment and its policies. It provides utilities such as semanage, audit2allow, audit2why, chcat and sandbox.

ID
xccdf_org.ssgproject.content_rule_package_policycoreutils-python-utils_installed
Severity
Medium
References
Updated

Remediation Templates

A Puppet Snippet

include install_policycoreutils-python-utils
class install_policycoreutils-python-utils {
  package { 'policycoreutils-python-utils':
    ensure => 'installed',
  }
}

An Ansible Snippet

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - CCE-94091-6
  - DISA-STIG-SLEM-05-654220

OS Build Blueprint

[[packages]]
name = "policycoreutils-python-utils"
version = "*"

A Shell Script

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

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