Skip to content

Install fapolicyd Package

An XCCDF Rule

Description

The fapolicyd package can be installed with the following command:

$ sudo yum install fapolicyd

Rationale

fapolicyd (File Access Policy Daemon) implements application whitelisting to decide file access rights.

ID
xccdf_org.ssgproject.content_rule_package_fapolicyd_installed
Severity
Medium
References
Updated



Remediation - Anaconda Pre-Install Instructions


package --add=fapolicyd

Remediation - OS Build Blueprint


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

Remediation - Ansible

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

Remediation - Puppet

include install_fapolicyd

class install_fapolicyd {
  package { 'fapolicyd':
    ensure => 'installed',
  }

Remediation - Shell Script

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

if ! rpm -q --quiet "fapolicyd" ; then
    yum install -y "fapolicyd"
fi