Files
runc/libcontainer/system
Kir Kolyshkin b70fd68171 libcontainer: inline ExecutableMemfd into exeseal.Memfd
ExecutableMemfd has a single caller (exeseal.Memfd), which always passes
MFD_ALLOW_SEALING|MFD_CLOEXEC, and it has been this way ever since the
function was added. Move it into exeseal.Memfd, hardcoding the flags.

This also makes sure the descriptor is always close-on-exec, which is in
line with the Go convention, and an executable memfd is never something
we want to leak across an execve.

Suggested-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-10-26 01:36:07 -07:00
..
2025-10-03 15:17:43 +10:00