referrerpolicy=no-referrer-when-downgrade

check_can_fully_enable

Function check_can_fully_enable 

Source
pub fn check_can_fully_enable(tempdir: &Path) -> Result<()>
Expand description

Runs a check for unshare-and-change-root and returns an error indicating whether it can be fully enabled on the current Linux environment.

NOTE: This should not be called in a multi-threaded context. unshare(2): “CLONE_NEWUSER requires that the calling process is not threaded.”