logoalt Hacker News

cosmicrivertoday at 12:26 PM1 replyview on HN

I am also surprised that capabilities weren't more widely implemented after mobile OSes demonstrated they are practical. I know Windows made a move in that direction with UAC but had to soften it due to user alert fatigue. So I guess having no legacy apps and a centralized repository helps.

I've recently been looking into Guix SD as a solution. Its package management is designed to keep programs independent of each other, so containers are cheap and lightweight. Trying out untrusted software is as easy as `guix shell --container --pure --no-cwd [program]`, which blocks access to the network, file system, and environment variables. Right now I'm adding more advanced capability management: limits on CPU, memory, storage space, network use, etc.


Replies

sterlindtoday at 5:26 PM

I use nix + bwrap, which gives a similar result. it works well enough, though I really ought to restrict reads to only the closure.

show 1 reply