sandlock
sandlock copied to clipboard
The lightest sandbox. A process-based sandbox for Linux, no container, no VM, no privilege, no prompt injection
Please provide the `--net-deny` option. By the way, is this project becoming more stable? I'm currently implementing sandbox functionality in my project, and constant changes to the functionality could cause...
A guest that holds any writable mount can hard-link a file out of a read-only mount and write through the alias, and can hard-link an `fs_deny`'d file and read it...
## Summary Under a virtual root (`chroot=` + `fs_mount=`), a runtime `chdir` to a **short** absolute path such as `/root`, `/workspace` or `/tmp` fails with `ENAMETOOLONG` (errno 36), while `ls`...
## Summary Wire the freestanding execve restore-stub (already landed, tested, but `#[allow(dead_code)]`) into the live restore path, and **replace the ptrace injection engine with it**. The stub restores a checkpoint...
`max_open_files` is accepted by the builder, the CLI, the C ABI, Python and Go — and never applied. `RLIMIT_NOFILE` appears nowhere under `crates/`. ## Reproduction Verified on `main` (0.8.5, x86-64)....
SandLock already supports persistent checkpoints and restoring an OS-level process image into a fresh sandbox. Could this be extended into a generally usable checkpoint/fork facility? Requested improvements: - Restore normal...
## Goal Make long-running sandboxes inspectable from outside. Every sandbox (CLI, Python SDK, embedded) exposes a per-process Unix control socket; a new `sandlock ps` lists live sandboxes and `sandlock config...
Hello, I'm using ubuntu 24.04, on both server and the docker devcontainer. The problem occurs in both the baremetal server and the docker container. Sandlock partially works. Below are my...
``` failures: ---- test_learn_then_run_collapse stdout ---- thread 'test_learn_then_run_collapse' (31781) panicked at crates/sandlock-cli/tests/learn_integration.rs:192:5: run failed with collapsed profile: cat: /usr/bin/true: Permission denied hint: if a denial caused this, extend the profile...
## Summary Add **write-only** (and ideally **append-only**) filesystem grants to the public API, e.g. `fs_write_only(path)` / fs_append(path)`, in addition to the existing `fs_read` / `fs_write`. Today `fs_write` grants read **and**...