Skip to main content

nested_cwd

Function nested_cwd 

Source
fn nested_cwd(
    tracee: &Tracee<'_>,
    nested: &View,
    config: &Config,
) -> (Vec<u8>, Vec<u8>, Option<String>)
Expand description

The working directory the nested command starts in, as a guest path of the nested view, and a warning when it is not the one asked for.

A directory given on the command line is a path of the nested view. Without one, PRoot starts in the caller’s working directory when it is visible in the new view, else in /; bwrap mode tries $HOME before /, as bubblewrap does.

§Returns

The canonical guest directory, the path as it was named (bwrap mode’s PWD), and the warning for a directory the command line named in vain.