pub enum Syscalls {
Unfiltered,
Deny(Vec<String>),
}Expand description
Syscall-filtering policy (Linux; opt-in per worker class).
The crate uses a denylist model rather than an allowlist: a worker’s full set of needed syscalls cannot be reliably enumerated, so the filter instead blocks a curated set of syscalls that a sandboxed worker never legitimately needs and that are known namespace-escape or kernel-CVE vectors.
Variants§
Unfiltered
Install no seccomp filter. The worker retains the ambient syscall
surface; confinement rests on namespaces, credentials, and
no_new_privs.
Deny(Vec<String>)
Install a seccomp filter that always blocks the crate’s built-in set of
dangerous syscalls — mount/namespace manipulation, module loading,
ptrace, kexec, keyring access, and other escape or CVE vectors, plus
argument-level guards on ioctl, clone, prctl, and socket — and
additionally blocks every syscall named here. An empty list installs
just the built-in baseline. Unknown names are a hard error at apply
time. On x86-64, workers and their libraries must use the native 64-bit
syscall ABI; both i386 and x32 syscall ABIs are rejected.