test(cli): prove check never spawns a Foreign kernel
A document with an executable foreign.call is statically checked without a marker side effect, then run to show the same provider does execute. This guards the 'check/inspect cannot execute untrusted code' contract.
This commit is contained in:
1 parent
18d9f39562
commit
2cf9ecedd5
4 files changed
+72
-2
No files matched your search
@@ -28,6 +28,11 @@ bwrap --unshare-user --unshare-net --ro-bind / / true
|
||||
sudo -n true
|
||||
-> sudo: The "no new privileges" flag is set, which prevents sudo from
|
||||
running as root (exit 1)
|
||||
capsh --print
|
||||
-> Current: = (no effective capabilities)
|
||||
-> Bounding set = cap_sys_admin, ... (not effective; no-new-privs=1)
|
||||
unshare --mount true / --pid --fork true / --net true
|
||||
-> Operation not permitted (exit 1 each)
|
||||
```
|
||||
|
||||
The workspace root is writable, but the host root filesystem and cgroup2 mount
|
||||
|
||||
Reference in new issue
Block a user