IsSandboxed checks if the current process is already running inside the sandbox.
This prevents infinite recursion if the worker accidentally calls Run().
Run executes the current binary (self) inside a gVisor sandbox.
It streams stdout and stderr directly to the provided writers to prevent memory buffering
which could be exploited to crash the parent via OOM.
type Config struct {
Args []string// Arguments for the internal worker Mounts []string// List of host paths to bind mount (read only) WorkDir string// Working directory inside the sandbox}
Config defines the execution parameters for the sandboxed process.
type Spec struct {
Version string `json:"ociVersion"`
Process *Process `json:"process"`
Root *Root `json:"root"`
Mounts []Mount `json:"mounts"`
Linux *Linux `json:"linux"`
}