SV-248861r958804_rule
V-248861
SRG-OS-000368-GPOS-00154
OL08-00-040137
CAT II
10
Configure OL 8 to employ a deny-all, permit-by-exception application whitelisting policy with "fapolicyd".
With the "fapolicyd" installed and enabled, configure the daemon to function in permissive mode until the whitelist is built correctly to avoid system lockout. Do this by editing the "/etc/fapolicyd/fapolicyd.conf" file with the following line:
permissive = 1
For OL 8.4 systems and older:
Build the whitelist in the "/etc/fapolicyd/fapolicyd.rules" file ensuring the last rule is "deny perm=any all : all".
For OL 8.5 systems and newer:
Build the whitelist in a file within the "/etc/fapolicyd/rules.d" directory ensuring the last rule is "deny perm=any all : all".
Once it is determined the whitelist is built correctly, set the fapolicyd to enforcing mode by editing the "permissive" line in the /etc/fapolicyd/fapolicyd.conf file.
permissive = 0
Verify the OL 8 "fapolicyd" employs a deny-all, permit-by-exception policy.
Check that "fapolicyd" is in enforcement mode with the following command:
$ sudo grep permissive /etc/fapolicyd/fapolicyd.conf
permissive = 0
Check that fapolicyd employs a deny-all policy on system mounts with the following commands:
For OL 8.4 systems and older:
$ sudo tail /etc/fapolicyd/fapolicyd.rules
For OL 8.5 systems and newer:
$ sudo tail /etc/fapolicyd/compiled.rules
allow exe=/usr/bin/python3.7 : ftype=text/x-python
deny_audit perm=any pattern=ld_so : all
deny perm=any all : all
If fapolicyd is not running in enforcement mode with a deny-all, permit-by-exception policy, this is a finding.
V-248861
False
OL08-00-040137
Verify the OL 8 "fapolicyd" employs a deny-all, permit-by-exception policy.
Check that "fapolicyd" is in enforcement mode with the following command:
$ sudo grep permissive /etc/fapolicyd/fapolicyd.conf
permissive = 0
Check that fapolicyd employs a deny-all policy on system mounts with the following commands:
For OL 8.4 systems and older:
$ sudo tail /etc/fapolicyd/fapolicyd.rules
For OL 8.5 systems and newer:
$ sudo tail /etc/fapolicyd/compiled.rules
allow exe=/usr/bin/python3.7 : ftype=text/x-python
deny_audit perm=any pattern=ld_so : all
deny perm=any all : all
If fapolicyd is not running in enforcement mode with a deny-all, permit-by-exception policy, this is a finding.
M
5416