sandlock icon indicating copy to clipboard operation
sandlock copied to clipboard

The lightest sandbox. A process-based sandbox for Linux, no container, no VM, no privilege, no prompt injection

Results sandlock issues
Sort by recently updated
recently updated
newest added

`handle_unlink(path, is_dir = true)` accepts a directory that is not empty and answers `Ok(true)`, where `rmdir(2)` would return `ENOTEMPTY`. The whiteout is recorded, and `commit()` then removes the directory and...

Renaming a directory that exists only in the lower layer reports success and destroys everything inside it. `handle_rename` (`cow/seccomp.rs:804`) starts with `ensure_cow_copy(&old_rel)`. For a directory that produces an empty directory...

`is_deleted` is an exact string match on the whiteout set (`cow/seccomp.rs:384-386`), so a whiteout covers the path it was recorded for and nothing beneath it. After a directory is marked...

`execute_copy` opens the lower file with `O_RDONLY` and no file-type check (`cow/seccomp.rs:508-514`). Opening a FIFO that way blocks until a writer appears, so a child that touches a FIFO under...

## Summary `Sandbox.run()` (the one-shot convenience API) deadlocks and hangs until the timeout when the sandboxed child writes more than one pipe buffer worth of data to a piped `stdout`/`stderr`....

Hi Why there is the default limit of [max_processes ](https://github.com/multikernel/sandlock/blob/main/docs/sandbox-reference.md)of 64? Considering it is 'lifetime fork count permitted in the sandbox (not concurrent)' as per documentation? Also, it is very...

## Goal Add a `sandlock learn -- ` mode that runs a workload under instrumentation and emits a minimal sandlock profile (TOML) covering exactly the filesystem reads/writes, network egress, and...

Requested by @SuperManito, simplify `--net-allow '*'` and `--net-allow 'udp://*' ` to `--net-allow '*'`.

# Chroot named-AF_UNIX gate is bypassable: lexical check + `Continue` (symlink/TOCTOU) and non-UTF-8 `None`-collapse (fail-open) **Component:** `crates/sandlock-core/src/network/` (connect / sendto / sendmsg / sendmmsg named-AF_UNIX gate) **Affected tree:** `main` @...

@SuperManito requests to support `--net-allow-bind '*' `