pub fn create_sandbox_minijail(
    root: &Path,
    max_open_files: u64,
    config: &SandboxConfig<'_>
) -> Result<Minijail>
Expand description

Creates a [Minijail] instance which creates a sandbox.

§Arguments

  • root - The root path to be changed to by minijail.
  • max_open_files - The maximum number of file descriptors to allow a jailed process to open.
  • config - The SandboxConfig to control details of the sandbox.