feat(worker): sandboxed decode child skeleton — rlimits, traced seccomp allowlist, pure-Rust decoders, libwebp in the child, parent RIFF check, musl image with test stage

This commit is contained in:
bchanot committed 2026-10-13 00:01:26 +02:00
1 parent 2a38fa37b5
commit 3970cdca52
13 files changed
+1435

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
//! `faunosteo-worker` library: the pieces the binary, the tests and the R1 job loop share.
//!
//! Process model (review Part IV.1): a keyed parent spawns the same binary as `decode`, a
//! child with an empty environment that confines itself (rlimits + seccomp) before reading
//! one image on stdin and writing one 512 × 512 WebP on stdout. The parent never decodes:
//! it checks the container header of what comes back (`webp_check`).
pub mod decode;
pub mod exit_codes;
#[cfg(feature = "test-hooks")]
pub mod fixtures;
pub mod limits;
pub mod sandbox;
pub mod spawn;
pub mod webp_check;