google / google/gvisor

runsc inside of default docker seccomp policy

Open
#4,371 13 comments 3 reactions 0 assignees View on GitHub
area: container runtime area: usability status: help wanted type: enhancement
Dominant language
Go
Stars
19.3k
Forks
2k
Avg merge
3d 5h
Merged PRs (30d)
264

Description

@scanlime on Twitter is trying to [run runsc inside a Docker container](https://twitter.com/scanlime/status/1310630296694398977) with the standard seccomp [policy](https://github.com/moby/moby/blob/master/profiles/seccomp/default.json) enabled. This is similar to rootless mode (#311), but a little bit more strict.

The immediate issue is that we exec into empty namespaces, which the profile does not allow. It is not clear if there would be more issues if that were resolved, though I didn't see any glaring issues comparing our seccomp filters to Docker's.

It's also not clear if the defense-in-depth features we'd have to disable to make this work would make it a bad idea. But in general, it is very reasonable to want to run a sandbox as a subprocess in an existing container.

cc @fvoznika @nlacasse

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.