rootless: harden slirp4netns with mount namespace and seccomp#39840
rootless: harden slirp4netns with mount namespace and seccomp#39840thaJeztah merged 1 commit intomoby:masterfrom
Conversation
When slirp4netns v0.4.0+ is used, now slirp4netns is hardened using
mount namespace ("sandbox") and seccomp to mitigate potential
vulnerabilities.
bump up rootlesskit: rootless-containers/rootlesskit@2fcff6c...791ac8c
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
thaJeztah
left a comment
There was a problem hiding this comment.
LGTM, but left a comment/thought
| exec $rootlesskit \ | ||
| --net=$net --mtu=$mtu \ | ||
| --slirp4netns-sandbox=$DOCKERD_ROOTLESS_ROOTLESSKIT_SLIRP4NETNS_SANDBOX \ | ||
| --slirp4netns-seccomp=$DOCKERD_ROOTLESS_ROOTLESSKIT_SLIRP4NETNS_SECCOMP \ |
There was a problem hiding this comment.
What is the default if no auto is set? If we omit these flags, would it not use sandbox or seccomp?
Basically wondering if we need the DOCKERD_ROOTLESS_ROOTLESSKIT_SLIRP4NETNS_SANDBOX env-vars or if we should omit these flags in the script (assuming people install the latest version of rootless kit)
There was a problem hiding this comment.
The rootlesskit default value is currently false but planned to be auto in future https://github.com/rootless-containers/rootlesskit/blob/v0.7.0/cmd/rootlesskit/main.go#L63-L72
There was a problem hiding this comment.
Ah, thanks for explaining; yes, auto sounds like a better default
|
CI failure was unrelated; kicked Jenkins |
|
Janky failure looks like a flaky test (tracked through #23626) https://ci.docker.com/public/job/moby/job/PR-39840/3/execution/node/178/log/?consoleFull |
|
Merging this one, because I don't think any of this runs in CI |
Signed-off-by: Akihiro Suda akihiro.suda.cz@hco.ntt.co.jp
- What I did
When slirp4netns v0.4.0+ is used, now slirp4netns is hardened using
mount namespace ("sandbox") and seccomp to mitigate potential
vulnerabilities.
- How I did it
bump up rootlesskit: rootless-containers/rootlesskit@2fcff6c...791ac8c
- How to verify it
Run rootless mode with slirp4netns v0.4.0+ installed
- Description for the changelog
rootless: harden slirp4netns with mount namespace and seccomp
- A picture of a cute animal (not mandatory but encouraged)
🐧