Skip to main content

DISABLE_ENV

Constant DISABLE_ENV 

Source
pub const DISABLE_ENV: &str = "OPENVMM_SANDBOX_DISABLE";
Expand description

Environment variable that disables the sandbox — debug builds only.

When this crate is built with debug_assertions and this variable is present in the environment, apply and tighten become no-ops so a developer can run a worker outside its confinement while iterating. Release builds ignore it entirely: the sandbox can never be switched off by an environment variable a compromised process could set.