BSD-style securelevel comes to Linux — again
Posted Sep 13, 2013 1:33 UTC (Fri) by
giraffedata (subscriber, #1954)
In reply to:
BSD-style securelevel comes to Linux — again by Cyberax
Parent article:
BSD-style securelevel comes to Linux — again
I've always rejected the concept of a program dropping privileges, and I run systems in which untrusted programs never do that and instead receive an environment with only the capabilities they need. It's based on regular Linux kernel capabilities, though: the program capexec sets the privileges (capabilities, uid, gid) of a new process and then execs the untrusted program. Process 1 has all capabilities, but system configuration determines what lesser capabilities all the other processes have.
Whether a program chooses its own capabilities or some OS facility establishes them, it seems to me the issue of changing the capabilities in future kernel releases is the same. If you make a certain capability bit give less privilege in Release 2 than it did in Release 1, you'll have trouble. If you never do, you can't ever tighten security.
And sometimes, it's a matter of opinion whether a certain capability bit is more powerful in Release 2 because the set of things that are possible in the two releases is different.
(
Log in to post comments)