sandlock
sandlock copied to clipboard
The lightest sandbox. A process-based sandbox for Linux, no container, no VM, no privilege, no prompt injection
Per the scope decision in https://github.com/multikernel/sandlock/pull/274#issuecomment-5983350176, track caller-credential correctness separately from #274's chroot target pinning and COW compatibility changes. The supervised access paths execute `faccessat2` using the supervisor's credentials. Pinning...
`sandlock_sandbox_builder_on_exit` and `..._on_error` map an unrecognized discriminant to `BranchAction::Commit`, so a binding that passes a bad value gets the change set merged into the workdir instead of an error. `crates/sandlock-ffi/src/lib.rs:228-232`:...
The Python SDK parses TOML mount specs itself instead of calling the core parser, and its version does not understand the `:ro` / `:rw` suffix. The suffix ends up glued...
## Reproduction On upstream `56d57b68c5d5bf2a2fadfe9c19f2ec6f28d14977` (0.8.9), a Python 3.13.3 HTTPS request through `--http-inject-ca` fails with certificate verification enabled: ```text ssl.SSLCertVerificationError: certificate verify failed: Missing Authority Key Identifier ``` The generated...
## Background Today I couldn't get sandlocked `bun` to work, where either `bun repl` or `bun test` silently exits with code 1. I figure it may have something to do...
seccomp: signals interrupt queued notifications, so trapped syscalls return EINTR (pipelines hang)
Three-stage shell pipelines hang about a third of the time: ``` sandlock run -r /usr -r /lib -r /lib64 -r /bin -r /etc -- sh -c 'echo abc | cat...
Granting `-r /sys` exposes host hardware and topology despite the explicit block on `/sys/class/net`; alternative paths under `/sys/devices` can reveal network devices too. Provide a read-only synthetic sysfs view consistent...
With `-r /proc`, only `/proc/net/dev` and `/proc/net/if_inet6` are virtualized (`tcp`/`tcp6` only under `port_remap`). Everything else is the host's, since sandlock creates no network namespace: `tcp`, `udp`, `unix`, `route`, `arp`, `fib_trie`,...
Write-side counterpart of #218. A `-w /proc/self/X` entry becomes a Landlock rule bound to the first pid's inode, so forked children are denied. ``` sandlock run -r /usr -r /lib...
`clone` with a namespace flag is refused, `clone3` with the same flag is not: ``` clone(CLONE_NEWUSER): EPERM clone3(CLONE_NEWUSER): allowed ``` Reproduced with a raw `syscall(SYS_clone3, &args, 64)` from python under...