|
|
Log in / Subscribe / Register

Complex means vulnerable

Complex means vulnerable

Posted Nov 6, 2025 18:32 UTC (Thu) by marcH (subscriber, #57642)
In reply to: SELinux and containers are complementary by Cyberax
Parent article: A security model for systemd

Vulnerabilities and bugs in general exist only thanks to complexity. There is a direct connection between complexity and bugs, every engineer sees that connection everyday. Bugs need complexity to escape code reviews, static analyzers and our limited brains.

That's why our entire field relies on abstractions: to divide and conquer into smaller bits that we can comprehend and reason about. Otherwise nothing would work at all.

So, the idea that you can make a complex system more secure by labeling and micro-managing everything and adding another layer of "complex security" on top is insane. At best, it's wasting a lot of time. At worst, it's also giving a false feeling of security.

It's not just SELinux. In a former life, I spend days trying to make sense of the apparently simpler NTFS permissions and adjust them for some not very particular use case. I eventually gave up. I bet most people don't have days for something like this.

Complexity in "security features" is in a generally much worse state than complexity in regular features because you cannot sell the former and you almost never get rewarded for getting it right. So it gets even less attention.

Anytime you see some complex security system, assume it's misused and misconfigured greatly.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds