|
|
Log in / Subscribe / Register

Making containers safer

Making containers safer

Posted Aug 23, 2019 7:54 UTC (Fri) by Freeaqingme (guest, #103259)
Parent article: Making containers safer

> LSM support is also essential for privileged containers, he said. Access to various files in procfs and sysfs must be blocked or the container can be compromised. The LSMs most frequently used by container managers are SELinux and AppArmor, but other "minor" LSMs (which can stack) are also added into the mix sometimes.

I'd like to counter this. Denying access to 'various files in procfs and sysfs' is too fragile. All it takes is a new file to be added in a new kernel release for this to cause a security issue. A container should be fully usable without having a procfs or sysfs mounted at all.

If that's not possible for some reason, access to various files in procfs/sysfs should be based on a whitelist, not a blacklist.


to post comments


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