commit 11362cc6a9630156c6c529c09f27462592e2c53a parent 07c8744a64b3817fe82b8e93f8fe2bd94b79145e Author: Jan Pobříslo <ccx@te2000.cz> Date: Thu, 16 Dec 2021 15:41:28 +0000 Assert we are PID1 in the namespace. Diffstat:
M | sbin/pidns_run | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/sbin/pidns_run b/sbin/pidns_run @@ -38,6 +38,7 @@ def main(argv): fork_pid = os.fork() if fork_pid == 0: # child + assert os.getpid() == 1 os.close(parent_wfd) fork2_pid = os.fork() if fork2_pid == 0: