Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Commit bf72307

Browse files
koki-developclaude
andcommitted
Add /dev/mqueue persistence test to verify sandbox isolation
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1be9be6 commit bf72307

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/mqueue_persistance.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Description
3+
Files created in /dev/mqueue persist across sandbox runs,
4+
potentially allowing information leakage and disk space exhaustion
5+
6+
Run this test twice and there should be no output
7+
8+
"""
9+
10+
import os
11+
import subprocess
12+
13+
fpath = "/dev/mqueue/bean"
14+
15+
if os.path.exists(fpath):
16+
print(f"{fpath} exists")
17+
else:
18+
subprocess.run(["touch", fpath])

0 commit comments

Comments
 (0)