Skip to content

Commit

Permalink
memfd-bind: mention that overlayfs obviates the need for it
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksa Sarai <[email protected]>
  • Loading branch information
cyphar committed Nov 4, 2024
1 parent 0212d0c commit 94a5067
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion contrib/cmd/memfd-bind/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
## memfd-bind ##

`runc` normally has to make a binary copy of itself when constructing a
> **NOTE**: Since runc 1.2.0, runc will now use a private overlayfs mount to
> protect the runc binary. This protection is far more light-weight than
> memfd-bind, and for most users this should obviate the need for `memfd-bind`
> entirely. Fully rootless containers will still make a memfd copy, but
> `memfd-bind` was not useful for rootless container users anyway (see
> [Caveats](#Caveats) for more details).
`runc` sometimes has to make a binary copy of itself when constructing a
container process in order to defend against certain container runtime attacks
such as CVE-2019-5736.

Expand Down

0 comments on commit 94a5067

Please sign in to comment.