Module sandbox

Source
Expand description

The main sandbox implementations. Do not use this module directly in code outside this file. Types from this module needed for public consumption are re-exported below.

Re-exports§

pub use config::SandboxConfiguration;
pub use initialized_multi_use::MultiUseSandbox;
pub use initialized_single_use::SingleUseSandbox;
pub use uninitialized::GuestBinary;
pub use uninitialized::UninitializedSandbox;

Modules§

config
Configuration needed to establish a sandbox.
initialized_multi_use
Functionality for dealing with initialized sandboxes that can call 0 or more guest functions
initialized_single_use
Functionality for dealing with initialized sandboxes that can call 0 or 1 guest functions, but no more
uninitialized
Functionality for creating uninitialized sandboxes, manipulating them, and converting them to initialized sandboxes.

Enums§

SandboxRunOptions
Re-export for SandboxRunOptions type Configuration options for setting up a new UninitializedSandbox and subsequent inititialized sandboxes, including MultiUseSandbox and SingleUseSandbox.

Functions§

is_hypervisor_present
Determine whether a suitable hypervisor is available to run this sandbox.
is_supported_platform
Determine if this is a supported platform for Hyperlight

Type Aliases§

ExtraAllowedSyscall
Alias for the type of extra allowed syscalls.