test(runner): verify sandbox isolation with a hostile program suite

This commit is contained in:
shira committed 2026-10-11 08:59:59 +03:00
1 parent afee564bf4
commit e858280d91
38 files changed
+1359 -168

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
# Timeout survival: a detached child in its own session outlives the
# parent; the PID namespace must take it down with the run.
import os
import sys
import time
if os.fork() == 0:
os.setsid()
if os.fork() == 0:
time.sleep(3600)
os._exit(0)
print("parent done")
sys.stdout.flush()