sandlock
sandlock copied to clipboard
The lightest sandbox. A process-based sandbox for Linux, no container, no VM, no privilege, no prompt injection
Since d37b8c0, `sandlock learn` hangs on Claude Code read and write workloads. Asking Claude Code to read a single file under `learn` is enough. The supervisor prints a run of...
Thanks for the ongoing changes benefiting embedders. While building with `default-features = false`, I noticed that three of sandlock-core's dependencies are built with some features that could be disabled. Narrowing...
Compile checkpoint and chroot C stubs only when their features are enabled. Honor target compiler configuration, including musl cross compilers, rather than requiring GNU-named tools. A minimal shell backend should...
Reconsider if the latest landlock crate could reduce our efforts of checking landlock ABI compatibility with old kernels.
Step 13 of \`confine_child\` (context.rs) applies \`clean_env\`, \`env\` and GPU vars with \`std::env::vars_os/remove_var/set_var\` in the forked child. These take std's \`ENV_LOCK\`; if another host thread held it at fork, the...
About 16 non-test `eprintln!`s remain in sandlock-core (seccomp/notif.rs, sandbox.rs, sandbox/builder.rs, transparent_proxy, freeze.rs, netlink/proxy.rs, policy_fn.rs, cow). An embedded library should not write to the host's stderr: return errors where a caller...
\`uuid\` pulls getrandom 0.4 alongside rand's getrandom 0.2. Outside image/, it only generates random tokens and salts (control/ownership.rs) and a COW branch id (cow/seccomp.rs); use \`rand\` there and keep \`uuid\`...
Support starting with network access denied and granting all destinations after human approval. Keep the initial permissions separate from an explicitly configured maximum permission ceiling; callbacks must not exceed that...
Allow embedders to subscribe only to network events such as connect, sendto, sendmsg, and sendmmsg. Apply the selection when building interception rules so network-only callbacks avoid unnecessary open callbacks and...
`rustfmt` have not been run on this repo afais, which makes the development harder for me (and probably anyone else who has rustfmt configured to run automatically on save). Is...