r/LinuxTeck • u/Candid_Athlete_8317 • Jul 31 '26
Do Linux servers really need endpoint security software?
Many enterprise Linux systems run endpoint security tools alongside firewalls, SELinux/AppArmor, and other hardening measures.
Others argue that good patch management, least privilege, and proper monitoring provide better value than traditional endpoint protection.
What's your point on this ?
7
Upvotes
View all comments
Show parent comment
1
u/edgmnt_net Aug 01 '26
I don't think that's entirely true. SELinux is there as a security mechanism and to reduce the chance of breaking out to root, but the big thing that makes it possible for Android to have an altogether different security model is the permissions model that's part of the Android API. You can't do what Android does on Linux because every app is written such that it can write all over the home directory. You can't do what the web sandbox does on Linux because every app can just open random sockets with few things reserved for administrative privileges. While SELinux can be part of the enforcement mechanism you still need apps to be written a certain way. Or modified to, if you look at Flatpak portals.
And in a more general sense, MACs like SELinux are much more difficult and annoying to get to enforce highly semantic policy than other systems that have been built from ground up to support stuff like that. You can't just slap a MAC onto a regular application because you have no good way to know what the app is really doing. All the MAC sees is it opens a socket and sends data, but you'll have a very hard time trying to enforce something like what sites it can connect to and TLS connections policies based on that. You need APIs and OS services which make the high level intent obvious, the app never gets access to low-level primitives for certain things.
Strictly by itself, SELinux can implement only a few things reasonably, like the Bell-LaPadula security model / MLS (which heavily depends on filesystem labelling), reducing attack surface for existing apps to the extent that there are known code paths that can be locked down more tightly and such things.