9 lines
257 B
Python
9 lines
257 B
Python
# 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")
|