How To Install fapolicyd on Rocky Linux 8
Introduction
In this tutorial we learn how to install fapolicyd
on Rocky Linux 8.
What is fapolicyd
Fapolicyd (File Access Policy Daemon) implements application whitelisting to decide file access rights. Applications that are known via a reputation source are allowed access while unknown applications are not. The daemon makes use of the kernel’s fanotify interface to determine file access rights.
We can use yum
or dnf
to install fapolicyd
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install fapolicyd.
Install fapolicyd on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install fapolicyd
using dnf
by running the following command:
sudo dnf -y install fapolicyd
Install fapolicyd on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install fapolicyd
using yum
by running the following command:
sudo yum -y install fapolicyd
How To Uninstall fapolicyd on Rocky Linux 8
To uninstall only the fapolicyd
package we can use the following command:
sudo dnf remove fapolicyd
fapolicyd Package Contents on Rocky Linux 8
/etc/fapolicyd
/etc/fapolicyd/fapolicyd.conf
/etc/fapolicyd/fapolicyd.rules
/etc/fapolicyd/fapolicyd.trust
/run/fapolicyd
/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/6059d222f6b2976f4e352628b5f7af1332233a
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/8ebefe4a4fe34b6bc0df7376fcb43a3f960b8b
/usr/lib/python3.6/site-packages/dnf-plugins/__pycache__/fapolicyd-dnf-plugin.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnf-plugins/__pycache__/fapolicyd-dnf-plugin.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnf-plugins/fapolicyd-dnf-plugin.py
/usr/lib/systemd/system/fapolicyd.service
/usr/lib/tmpfiles.d/fapolicyd.conf
/usr/sbin/fapolicyd
/usr/sbin/fapolicyd-cli
/usr/share/doc/fapolicyd
/usr/share/doc/fapolicyd/README.md
/usr/share/fapolicyd
/usr/share/fapolicyd/fapolicyd-magic.mgc
/usr/share/fapolicyd/fapolicyd.rules.known-libs
/usr/share/fapolicyd/fapolicyd.rules.restrictive
/usr/share/licenses/fapolicyd
/usr/share/licenses/fapolicyd/COPYING
/usr/share/man/man1/fapolicyd-cli.1.gz
/usr/share/man/man5/fapolicyd.conf.5.gz
/usr/share/man/man5/fapolicyd.rules.5.gz
/usr/share/man/man5/fapolicyd.trust.5.gz
/usr/share/man/man8/fapolicyd.8.gz
/var/lib/fapolicyd
/var/lib/fapolicyd/data.mdb
/var/lib/fapolicyd/lock.mdb
/var/log/fapolicyd-access.log
/var/run/fapolicyd/fapolicyd.fifo
References
Summary
In this tutorial we learn how to install fapolicyd
on Rocky Linux 8 using yum and dnf.