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

+8
View File
@@ -0,0 +1,8 @@
# Timeout survival: ignores every catchable signal and spins; only SIGKILL
# from the supervisor stops it.
import signal
for number in (signal.SIGTERM, signal.SIGINT, signal.SIGHUP, signal.SIGXCPU, signal.SIGALRM, signal.SIGUSR1):
signal.signal(number, signal.SIG_IGN)
while True:
pass