Re:TinyKVM: Fast sandbox that runs on top of Varnish
by codethief on Monday March 17, 2025 @08:16AM
(#43387675)
Hi Ruben!
> I suspect what you are actually asking to implement an OCI runtime with TinyKVM
Yes, that's what I meant! :) Apologies for the confusion!
On a related note, since you know the author ;), what capabilities[0] do I need to run TinyKVM?
The reason I'm asking is that I'm interested in nesting containers. E.g., I have a CI pipeline whose jobs run in containers and these jobs are in turn supposed to build container images. Today, this is very difficult to do securely (i.e. using rootless containers and no privileges, possibly with AppArmor & seccomp enabled) because the average OCI runtime requires capabilities that the parent OCI runtime doesn't grant by default (or that AppArmor disables by default).
I'm curious whether a virtualization-based sandbox might provide a way out here since the capabilities of the process running inside the sandbox/VM get emulated to some agree and are not necessarily tied to the outside (VM process's) capabilities.
> I suspect what you are actually asking to implement an OCI runtime with TinyKVM
Yes, that's what I meant! :) Apologies for the confusion!
On a related note, since you know the author ;), what capabilities[0] do I need to run TinyKVM?
The reason I'm asking is that I'm interested in nesting containers. E.g., I have a CI pipeline whose jobs run in containers and these jobs are in turn supposed to build container images. Today, this is very difficult to do securely (i.e. using rootless containers and no privileges, possibly with AppArmor & seccomp enabled) because the average OCI runtime requires capabilities that the parent OCI runtime doesn't grant by default (or that AppArmor disables by default).
I'm curious whether a virtualization-based sandbox might provide a way out here since the capabilities of the process running inside the sandbox/VM get emulated to some agree and are not necessarily tied to the outside (VM process's) capabilities.
[0]: https://www.man7.org/linux/man-pages/man7/capabilities.7.htm...