Install policycoreutils-python-utils package
An XCCDF Rule
Description
The policycoreutils-python-utils
package can be installed with the following command:
$ sudo yum 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 - Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
if ! rpm -q --quiet "policycoreutils-python-utils" ; then
yum install -y "policycoreutils-python-utils"
fi
Remediation - Anaconda Pre-Install Instructions
package --add=policycoreutils-python-utils
Remediation - OS Build Blueprint
[[packages]]
name = "policycoreutils-python-utils"
version = "*"
Remediation - Ansible
- name: Ensure policycoreutils-python-utils is installed
package:
name: policycoreutils-python-utils
state: present
when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"]
tags:
Remediation - Puppet
include install_policycoreutils-python-utils
class install_policycoreutils-python-utils {
package { 'policycoreutils-python-utils':
ensure => 'installed',
}