pub struct GVisorOciRunOptions {
pub network_mode: GVisorNetworkMode,
pub ignore_cgroups: bool,
pub runsc_rootless: bool,
pub stage_runsc_binary: bool,
pub require_supervisor_exec_policy: bool,
pub platform: GVisorPlatform,
pub console_socket: Option<PathBuf>,
}Expand description
Options for running an OCI bundle with gVisor.
Fields§
§network_mode: GVisorNetworkModegVisor networking mode passed to runsc.
ignore_cgroups: boolSkip runsc’s cgroup setup when Nucleus manages cgroups externally.
runsc_rootless: boolTell runsc to use its rootless launcher and helper handoff semantics.
This is independent from require_supervisor_exec_policy: production
callers decide separately whether the host-side execute allowlist is
compatible with the selected handoff path.
stage_runsc_binary: boolStage runsc into the per-container runtime directory before exec.
This is for non-store runsc binaries and host-side supervisor execute policy isolation. Rootless bridge mode should normally leave runsc on its immutable package path so gVisor helpers can re-exec a globally traversable binary after they adjust credentials.
require_supervisor_exec_policy: boolFail if the host-side supervisor execute allowlist cannot be installed.
platform: GVisorPlatformgVisor Sentry platform backend.
console_socket: Option<PathBuf>Optional OCI console socket that receives the terminal PTY master.
Trait Implementations§
Source§impl Clone for GVisorOciRunOptions
impl Clone for GVisorOciRunOptions
Source§fn clone(&self) -> GVisorOciRunOptions
fn clone(&self) -> GVisorOciRunOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GVisorOciRunOptions
impl Debug for GVisorOciRunOptions
Source§impl Default for GVisorOciRunOptions
impl Default for GVisorOciRunOptions
impl Eq for GVisorOciRunOptions
Source§impl PartialEq for GVisorOciRunOptions
impl PartialEq for GVisorOciRunOptions
Source§fn eq(&self, other: &GVisorOciRunOptions) -> bool
fn eq(&self, other: &GVisorOciRunOptions) -> bool
self and other values to be equal, and is used by ==.