Easier container security with entitlements
Easier container security with entitlements
Posted May 24, 2018 23:12 UTC (Thu) by simcop2387 (subscriber, #101710)Parent article: Easier container security with entitlements
For seccomp I've actually been writing my own sandbox, it's still in progress but is pretty usable (by me). It's definitely more complicated than the JSON files I've seen from Kubernetes and Docker. It's using YAML and some custom stuff to handle constant values (things like O_APPEND, etc.).
You can get a high level overview of it from https://metacpan.org/pod/App::EvalServerAdvanced::Seccomp
It ends up setting up several namespaces (PID, SHM, mount, etc.), drops all capabilities, and then sets up seccomp as a whitelist for allowed syscalls. There's still more I could do to with apparmor or selinux but they haven't seemed necessary for my particular use.