=== modified file 'sbin/ns_run' --- old/sbin/ns_run 2021-12-16 15:21:31 +0000 +++ new/sbin/ns_run 2021-10-20 00:30:48 +0000 @@ -20,7 +20,6 @@ ## - anything you wish to call before and for dropping privs, ## eg. s6-applyuidgid ## All statically linked of course. -## NS_NO_PID1 - Allow not running as init process of the namespace. # import variables from environment, with defaults multisubstitute { @@ -32,11 +31,7 @@ # check we are PID1 (in a new PID namespace) getpid PID -ifelse { - importas -D "" NS_NO_PID1 NS_NO_PID1 - if -x 0 { test -z $NS_NO_PID1 } - importas -i PID PID test 1 -ne $PID -} { +ifelse { importas -i PID PID test 1 -ne $PID } { fdmove -c 1 2 echo "ns_run: fatal: not PID 1" exit 111