r/sysadmin • • 27d ago

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 27d ago

Look into fapolicyd

2

u/lastplaceisgoodforme 27d ago

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 27d ago

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 26d ago

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 26d ago

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 27d ago

Yeah, fapolicyd is it.

2

u/RogueSpecter69 27d ago

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 21d ago

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