Skip to main content

Crate sandlock_core

Crate sandlock_core 

Source

Re-exports§

pub use error::SandlockError;
pub use policy::Policy;
pub use policy::PolicyBuilder;
pub use result::RunResult;
pub use result::ExitStatus;
pub use sandbox::Sandbox;
pub use pipeline::Stage;
pub use pipeline::Pipeline;
pub use dry_run::Change;
pub use dry_run::ChangeKind;
pub use dry_run::DryRunResult;

Modules§

context
dry_run
error
fork
COW fork — create lightweight clones of a sandboxed process.
image
Extract local Docker/OCI images into rootfs directories for sandboxing.
landlock
pipeline
Sandbox pipeline — chain multiple sandboxed stages connected by pipes.
policy
policy_fn
Dynamic policy — live policy modification via syscall event callbacks.
profile
result
sandbox
seccomp

Structs§

Checkpoint
A frozen snapshot of sandbox state.

Constants§

MIN_LANDLOCK_ABI
Minimum Landlock ABI version required by sandlock.

Functions§

confine_current_process
Confine the calling process with Landlock filesystem restrictions.
landlock_abi_version
Query the Landlock ABI version supported by the running kernel.