From 04b195500fffe982891ae3872c8987bdaeec09c0 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 16 Jun 2024 13:55:48 +0200 Subject: populate_dev: install /dev/fd This symlink turns out to be important for execveat. Its NOTES section details that /dev/fd needs to work in order for execveat to work. We better provide this symlink. --- linuxnamespaces/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/linuxnamespaces/__init__.py b/linuxnamespaces/__init__.py index df40dea..43c1bc8 100644 --- a/linuxnamespaces/__init__.py +++ b/linuxnamespaces/__init__.py @@ -410,6 +410,7 @@ def populate_dev( directories = {"pts"} files = set() symlinks = { + "fd": "/proc/self/fd", "stdin": "/proc/self/fd/0", "stdout": "/proc/self/fd/1", "stderr": "/proc/self/fd/2", -- cgit v1.2.3