Skip to content

Install fapolicyd Package

An XCCDF Rule

Description

The fapolicyd package can be installed with the following command:
$ sudo dnf 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 Templates

script:kickstart

package install fapolicyd

An Ansible Snippet

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

Anaconda Pre-Install Instructions

package --add=fapolicyd

OS Build Blueprint

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

A Puppet Snippet

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

A Shell Script

# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
if ! rpm -q --quiet "fapolicyd" ; then
    dnf install -y "fapolicyd"
fi