mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-11 10:23:17 +08:00
Fixes #1368 The gVisor worker leaves `seccompProfile` unset and relies on the runtime default. `runsc`'s gofer/boot child processes `pivot_root()` while setting up the sandbox rootfs, and the default seccomp profile denies `pivot_root` whatever capabilities the worker holds — the same reason the microVM worker already declares `Unconfined`. On a cluster that defaults pod seccomp to `RuntimeDefault` (e.g. via an admission policy), the sandbox child dies during startup and `runsc create` fails with `cannot read client sync file: waiting for sandbox to start: EOF`. This declares `Unconfined` explicitly for the gVisor worker too, mirroring the microVM branch. It relaxes the filter only on gVisor's own control processes; the actor workload inside the sandbox remains confined by the sentry's own seccomp. > This change was prepared with AI assistance; I have reviewed and tested it. - [x] Tests pass - [x] Appropriate changes to documentation are included in the PR