Skip to main content

is_bwrap_usable

Function is_bwrap_usable 

Source
pub fn is_bwrap_usable() -> bool
Expand description

Checks whether bwrap can create user namespaces and sandboxes normally on Linux.

On environments like Ubuntu 24.04+ with kernel.apparmor_restrict_unprivileged_userns = 1, bwrap without an AppArmor profile authorization fails when creating uid maps (Permission denied). In this case, fall back to danger-full-access to prevent Codex from aborting on command execution.