summaryrefslogtreecommitdiff
path: root/linuxnamespaces
diff options
context:
space:
mode:
Diffstat (limited to 'linuxnamespaces')
-rw-r--r--linuxnamespaces/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/linuxnamespaces/__init__.py b/linuxnamespaces/__init__.py
index e305b4e..54a6883 100644
--- a/linuxnamespaces/__init__.py
+++ b/linuxnamespaces/__init__.py
@@ -368,7 +368,11 @@ def populate_dev(
newdev = AtLocation(newroot) / "dev"
directories = {"pts"}
files = set()
- symlinks = {}
+ symlinks = {
+ "stdin": "/proc/self/fd/0",
+ "stdout": "/proc/self/fd/1",
+ "stderr": "/proc/self/fd/2",
+ }
bind_mounts: dict[str, AtLocation] = {}
with contextlib.ExitStack() as exitstack:
for fn in "null zero full random urandom tty".split():