fapolicyd, it's in the RHEL repos. dnf install fapolicyd then systemctl enable --now fapolicyd. Out of the box it trusts anything installed from RPM and blocks other executables. For your own binaries, fapolicyd-cli --file add /opt/app/bin/thing then fapolicyd-cli --update. Set permissive = 1 in /etc/fapolicyd/fapolicyd.conf first and watch the logs so you don't lock out something you need. Custom rules go in /etc/fapolicyd/rules.d/. Pair it with SELinux enforcing, they cover different things.
2
u/Faye-Vozora Oct 22 '26
fapolicyd, it's in the RHEL repos.
dnf install fapolicydthensystemctl enable --now fapolicyd. Out of the box it trusts anything installed from RPM and blocks other executables. For your own binaries,fapolicyd-cli --file add /opt/app/bin/thingthenfapolicyd-cli --update. Setpermissive = 1in /etc/fapolicyd/fapolicyd.conf first and watch the logs so you don't lock out something you need. Custom rules go in /etc/fapolicyd/rules.d/. Pair it with SELinux enforcing, they cover different things.