An isolation boundary is the interface through which isolated code can reach what lies outside it; an attacker inside must find a flaw in the code behind that interface to cross it.
| isolation | boundary | shared with the neighbours | cost |
|---|---|---|---|
| process | system calls, page tables | the kernel, the file system | almost none |
| container | system calls, filtered by namespaces and limits | the kernel | almost none; the same kernel for all |
| virtual machine | the trapping instructions and the virtual devices | the hypervisor, the hardware | a kernel per guest, traps, two-stage walks |
| language sandbox | the language’s operations and its library | the interpreter’s process | checks on every operation |