diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-06-16 13:55:48 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2024-06-16 13:55:48 +0200 |
commit | 04b195500fffe982891ae3872c8987bdaeec09c0 (patch) | |
tree | 7eeefb4f736cf5a70a99b4f05602ffe3c15ff2ad | |
parent | 226e83eb8f0662f302c7f98c6b77bf88fae01997 (diff) | |
download | python-linuxnamespaces-04b195500fffe982891ae3872c8987bdaeec09c0.tar.gz |
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.
-rw-r--r-- | linuxnamespaces/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
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", |