mrrl-containers

MRRL version of container scripts
git clone https://ccx.te2000.cz/git/mrrl-containers
Log | Files | Refs

commit 594c459a8191d7ac972b98b3c31b73232a09e2d5
parent 99f45df858703c2918a5326ec7ce75fa267eb4a1
Author: ccx <ccx@te2000.cz>
Date:   Mon, 18 Mar 2024 23:47:17 +0000

Open the tty before setsid

Diffstat:
Mservice_scripts/xorg/run | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/service_scripts/xorg/run b/service_scripts/xorg/run @@ -66,6 +66,8 @@ ns_run_unshared data/root { if { chown root:xorg ./dev/tty${vtN} } } # This runs with changed / so use absolute paths before dropping privs +/mnt/ns/bin/redirfd -r 0 /dev/tty${vtN} +/mnt/ns/bin/redirfd -w 1 /dev/tty${vtN} /mnt/ns/bin/s6-setsid /mnt/ns/bin/applyuidgid-caps -U "" env HOME=${CONTAINER_USER_HOME} USER=${CONTAINER_USER}