test(runner): verify sandbox isolation with a hostile program suite
This commit is contained in:
1 parent
afee564bf4
commit
e858280d91
38 files changed
+1359
-168
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# Escape attempt: mounting a fresh procfs is killed by the seccomp policy.
|
||||
import ctypes
|
||||
import os
|
||||
|
||||
os.makedirs("/tmp/proc", exist_ok=True)
|
||||
libc = ctypes.CDLL(None, use_errno=True)
|
||||
libc.mount(b"proc", b"/tmp/proc", b"proc", 0, None)
|
||||
print("mount returned")
|
||||
Reference in new issue
Block a user