pub fn check_network_mode(config: &TaskConfig) -> Result<(), String>Expand description
Validates network configuration against the environment and active flags.
Refuses --network=off when running with --container, when --sandbox=off,
when the sandbox is unavailable, or on Linux when landlock_abi() < 4.