|
|
Log in / Subscribe / Register

SELinux and containers are complementary

SELinux and containers are complementary

Posted Nov 6, 2025 7:54 UTC (Thu) by tomf (subscriber, #113110)
Parent article: A security model for systemd

> But that is not how many of Linux's security mechanisms are built. SELinux, for instance, requires a specific policy for each daemon. Then, one might write the policy that forbids that daemon from creating device nodes. But that is much more fragile and difficult to maintain, he said. "It's much easier figuring out universal truths and enforcing them system-wide". To do that, components should be isolated into separate worlds.

I'm reminded of maybe a Dan Walsh quote in which he says SELinux policy complexity reflects an underlying oversharing, and that the SELinux policy files for containers are simple precisely because containers define separate worlds.

Meanwhile, SELinux has prevented some container escapes. So I think of containers and SELinux as being complementary.

I see the author also wrote https://www.redhat.com/en/blog/selinux-mitigates-containe... :)


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