sandlock
sandlock copied to clipboard
The lightest sandbox. A process-based sandbox for Linux, no container, no VM, no privilege, no prompt injection
## Problem The core already distinguishes how a sandboxed process ended — `ExitStatus` (`crates/sandlock-core/src/result.rs`) is `Code(i32) | Signal(i32) | Killed | Timeout`, and `sandlock_handle_wait_timeout` deterministically produces `ExitStatus::Timeout` when its own...
Hi, since 0.8.4 with --net-allow option I cannot start any GUI app. Running in Arch Linux, KDE.
@SuperManito proposed to add `--net-allow-v6` and `--net-deny-v6`, so that `--net-allow/--net-deny` would only need to handle IPv4. @congwang-mk : Although this is definitely straight forward, two more options look a bit...
@solarhell — heads-up on a small parity gap in the Go SDK, and an offer. PR #71 added the Protection opt-out (`allow_degraded` / `disable` per Landlock protection) so a sandbox...
- Surface: seccomp/notif.rs:1339 precheck → is_path_denied_for_notif returns EACCES else Continues; kernel re-resolves on execution. canonicalize in the supervisor is a separate, racy resolution. - Condition: non-chroot mode, with a deny...
In seccomp COW mode, the supervisor resolves backing paths lexically and then performs a plain, symlink-following libc::open that runs outside the child's Landlock ruleset. A symlink in the working dir...
Sandlock is partly based on seccomp notifications and appears to be implying that they can be safely used for something the `seccomp_unotify(2)` man page [warns against](https://man7.org/linux/man-pages/man2/seccomp_unotify.2.html#:~:text=Note%20well%3A%20this%20mechanism%20must%20not%20be%20used%20to%20make%20security%20policy%20decisions%20about%20the%20system%20call%2C%20which%20would%20be%20inherently%20race%2D%20prone%20for%20reasons%20described%20next%2E), i.e. to make a...
sandlock supports Docker images as input, but isn't an OCI runtime. Implementing the OCI runtime spec interface would let it slot into Kubernetes as a RuntimeClass, which is the main...
## Context I'd like to help Go users adopt sandlock and want to check the maintainers' preference before opening a PR. From reading the tree, the binding surface is the...
Would it be possible to support systems with ABI v5? It would enable us to run sandlock on top of RHEL 9 Kernel. I'm mostly interested in FS and network...