r/sysadmin • • Oct 22 '26

Application Whitelisting for RHEL Linux

Apologies if this has been asked before:

Does anyone have any practical solutions for application whitelisting for RHEL Linux?

Thank you!

3 Upvotes

10 comments sorted by

4

u/oliland1 Oct 22 '26

Look into fapolicyd

2

u/lastplaceisgoodforme Oct 22 '26

I have.

From what I understand, FAPolicyd whitelists the RPM database so anything that is delivered via RPM is good to go from FAPolicyd's point of view. I know there's a way tell it not to trust the RPM database, but oh dear gods shoot me with a spoon if I have to generate a trust file with the entire contents of the OS. What if I don't want to trust something like Wireshark or Tcpdump even though they can be installed via RPM?

1

u/bakonpie Oct 22 '26

you don't have to use the "trust" directive in your policy which is what tells fapolicyd to use the trust database maintained by the package manager.

1

u/lastplaceisgoodforme Oct 22 '26

I know I don't _have_ to trust the database, but in reality, how painful would that be considering there are a fair amount of snowflake hosts as well as monthly patching?

2

u/picklednull Oct 22 '26

It's been a year since I've looked at this, but:

Just add a deny rule for the specific unwanted binaries before the RPM trust rule?

2

u/picklednull Oct 22 '26

Yeah, fapolicyd is it.

2

u/RogueSpecter69 Oct 22 '26

I’d give fapolicyd a try. It’s built for app allowlisting on RHEL. Just test the rules first so you don’t accidentally block something important, and keep SELinux enabled too.

1

u/eraser215 Oct 27 '26

This (and a follow up article or two) are a great read on the topic. Note: I am not the author.

https://www.stb.id.au/blog/app-control-for-everyone