News for hackers. Stuff that matters.
Re:Linux, IRIX and “Posix Capabilities” (1999) by tenfingers on Monday June 29, 2015 @05:47AM (#9797171)
In linux cgroups and namespaces effectively are a better model. I wonder if internally posix capabilities could just be re-implemented over cgroups instead.
Re:Linux, IRIX and “Posix Capabilities” (1999) by justincormack on Monday June 29, 2015 @06:17AM (#9797254)
They are a limited model. Namespaces do allow you to pass access tokens between processes, but these are limited as mostly you can only be in one namespace at a time, so they are not usefully compositional. You can never be in more than one cgroup of the same type, and you cannot pass your capabilties on.

Capsicum is a real capabilities system, as is being discussed in the article, where capabilities are attached to file descriptors. So for example process descriptors in Capsicum are file descriptors that refer to a process, if that design was pervasive you do not need process namespaces as you can only see processes you have a descriptor for.

Re:Linux, IRIX and “Posix Capabilities” (1999) by tenfingers on Monday June 29, 2015 @06:33AM (#9797294)
Wouldn't capsicum then allow to effectively implement different user models than root/user? Where the login process would be responsible to just drop capabilities after switching the uid?
Re:Linux, IRIX and “Posix Capabilities” (1999) by justincormack on Monday June 29, 2015 @07:58AM (#9797499)
Potentially, although it might need quite a lot of infrastructure to make that work usefully I think, as most of the design in Capsicum has been around reducing capabilities for a single group of programs for security, not a whole system. You can do much of that with Linux capabilities now - see man (7) capabilities and the section "The securebits flags: establishing a capabilities-only environment" which says how to disable suid so root is effectively removed.