Enable the File Access Policy Service
An XCCDF Rule
Description
The File Access Policy service should be enabled.
The fapolicyd
service can be enabled with the following command:
$ sudo systemctl enable fapolicyd.service
Rationale
The fapolicyd
service (File Access Policy Daemon)
implements application whitelisting to decide file access rights.
- ID
- xccdf_org.ssgproject.content_rule_service_fapolicyd_enabled
- Severity
- Medium
- References
- Updated
Remediation - Ansible
- name: Enable service fapolicyd
block:
- name: Gather the package facts
package_facts:
manager: auto
Remediation - OS Build Blueprint
[customizations.services]
enabled = ["fapolicyd"]
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" unmask 'fapolicyd.service'
"$SYSTEMCTL_EXEC" start 'fapolicyd.service'
Remediation - Puppet
include enable_fapolicyd
class enable_fapolicyd {
service {'fapolicyd':
enable => true,
ensure => 'running',