commit 76927fe7a2ce04ce1e8b7966f2313adcae66ef3e
parent 210524bb557bbbdc8929c80e6d916eefae0b4294
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Thu, 11 May 2023 12:56:08 +0200
Add filedescriptor references to /dev
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/sbin/ns_run b/sbin/ns_run
@@ -91,6 +91,10 @@ if { mknod -m 644 dev/random c 1 8 }
if { mknod -m 644 dev/urandom c 1 9 }
if { mknod -m 666 dev/zero c 1 5 }
if { mknod -m 666 dev/tty c 5 0 }
+if { s6-ln -sf /proc/self/fd dev/fd }
+if { s6-ln -sf /proc/self/fd/0 dev/stdin }
+if { s6-ln -sf /proc/self/fd/1 dev/stout }
+if { s6-ln -sf /proc/self/fd/2 dev/stderr }
# shm, pts and mqueue are provided below
# also have some convenience dirs in place for optionally bind-mounting them