Struo
← Changelog

Fix Linux read-only execution setup

Read-only commands use a read-only view of the host proc filesystem rather than requiring a fresh proc mount. Mandatory Landlock, namespace isolation, descriptor sanitation and seccomp restrictions remain in place, with no unconfined fallback. Programs can toggle nonblocking I/O on their descriptors, so Node.js can write captured output. Device-control requests remain denied.

Ubuntu hosts enforcing unprivileged user namespace restrictions also need the packaged bwrap-userns-restrict AppArmor profile loaded. It grants bubblewrap the capabilities needed to construct the sandbox while denying capabilities to executed children. Host-wide namespace restrictions need not be disabled.