Menu

Enum

SandboxMode

kurogane::SandboxModeSource
#[non_exhaustive] pub enum SandboxMode { Disabled, Chromium, }

Chromium process sandbox policy.

Selected with App::sandbox_mode.

Variants

#Disabled

Run Chromium without its helper-process sandbox.

CEF is initialized with no_sandbox=1 and the platform’s sandbox-disabling switches are set.

#Chromium

Run renderer, GPU and utility processes inside Chromium’s sandbox.

Startup fails unless the platform can enforce it:

  • Linux: unprivileged user namespaces, or a root-owned setuid chrome-sandbox helper.
  • macOS: the app runs from a .app bundle, where each helper can enter its seatbelt sandbox before CEF initializes.
  • Windows: the app is loaded by CEF’s bootstrap executable, which brokers the sandbox. See sandbox_entry!.

Trait implementations