Re:Domesticating applications, OpenBSD style
by vezzy-fnord on Wednesday July 22, 2015 @01:12PM
(#9930910)
capabilities-based approach
tame() isn't a capabilities-based approach. Don't confuse POSIX capabilities with actual capability-based security. The former hijacked an existing term to refer to a different thing.
It's pretty obviously a limited API, but it also makes privilege dropping absolutely trivial. Which is the point.
While Spender's criticism isn't usually very diplomatic, he's often right.
Here's an example, this is QEMU's seccomp whitelist: http://git.qemu.org/?p=qemu.git;a=blob_plain;f=qemu-seccomp....
As you can see, it's mostly worthless since QEMU has to do lots of potentially-dangerous operations by design (even reading/writing to raw devices). A proper mandatory access control framework actually restricts which device files it can access, for example - as implemented in the AppArmor/SELinux sVirt drivers. Theo's approach is similarly flawed.