Skip to main content

Crate zerobox

Crate zerobox 

Source
Expand description

Rust SDK for running commands with zerobox sandbox policies.

Sandbox is a builder for a command plus the filesystem, network, environment, profile, and secret rules that should apply to it.

§Example

use zerobox::Sandbox;

let output = Sandbox::command("echo")
    .arg("hello")
    .allow_write("/tmp")
    .run()
    .await?;

assert!(output.status.success());

The crate also ships the zerobox CLI. See the package README for the CLI flag reference, profile behavior, and platform notes.

Modules§

arg0
Linux helper re-entry support for applications embedding zerobox.
profile_core
proxy
secret

Structs§

PreparedCommand
Sandbox
SandboxChild
SandboxOutput

Functions§

zerobox_home