Skip to documentation
SLOP

tiny.sandbox.execute

Reference tiny.sandbox execute

Defined in run.

Executes a run plan within a disposable layer directory, returning a Result that owns captured standard streams, the detected change set, an Audit record, and the layer directory handle.

Called byCallstest sourcelib.sandbox.src.runtest: run can execute a materialized ...test sourcelib.sandbox.src.runtest: run can replace the child envir...test sourcelib.sandbox.src.runtest: run cleans disposable layer aft...test sourcelib.sandbox.src.runtest: run cleans disposable layer aft...test sourcelib.sandbox.src.runtest: run cleans writes one level abo...+12 morebwrapexecutemacosexecuteprivate sourcelib.sandbox.src.runexecuteStagingprivate sourcelib.sandbox.src.runexpectedAuditwindowsexecuterunexecute
Static calls · unresolved targets: 0 · external targets: 1.

Source

Source: lib/sandbox/src/run.zig:37

zig
/// Executes a run plan within a disposable layer directory, returning a/// `Result` that owns captured standard streams, the detected change set, an/// `Audit` record, and the layer directory handle.////// Before launching the child process, `execute` checks the selected runner/// capabilities against the policy requested in `plan`, returning an error if a/// required setting is unsupported. A child process that exits with a nonzero/// status code produces a successful `Result` carrying that status. The error/// union instead covers refused policies along with host setup, execution, and/// data collection failures.////// Callers inspect changes to the layer through the change set. Each entry can/// describe a file, directory, or symbolic link, recording either a path to/// create or replace using the `put` operation or a path to remove using the/// `delete` operation. The library reads the source to prepare the layer and/// reports changes, but it does not automatically apply changes back to the/// source. An unconfined child may independently write external paths on the/// host.pub fn execute(allocator: Allocator, plan: plan_data.Plan) !Result {    try plan.policy.validate(expectedAudit(plan));    return switch (plan.runner) {        .staging => executeStaging(allocator, plan),        .bubblewrap_overlay => bwrap.execute(allocator, plan),        .macos_staging => macos.execute(allocator, plan),        .windows_staging => windows.execute(allocator, plan),    };}

Source: lib/sandbox/src/root.zig:67

zig
pub const execute = run.execute;

Complete caller list

17 direct callers.

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433