Skip to content

Why dirty pipe can escape container? #3423

Answered by cyphar
g0dA asked this question in Q&A
Mar 18, 2022 · 4 comments · 5 replies
Discussion options

You must be logged in to vote

Because of many complaints by Kubertnetes folks, we switched to making /proc/self/exe a read-only bind-mount. The memfd logic still exists but it's only exercised by rootless containers.

It's pretty frustrating that I implemented a protection against this precise issue which we were forced to disable because Kubertnetes integration tests started failing (copying the binary increases memory usage by a few MB and the Kubertnetes tests had tiny memory limits).

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by AkihiroSuda
Comment options

You must be logged in to vote
4 replies
@cyphar
Comment options

@cyphar
Comment options

@brant-ruan
Comment options

@cyphar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cyphar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
5 participants
Converted from issue

This discussion was converted from issue #3422 on March 19, 2022 01:49.