tiny.sandbox.audit
Defined in tiny.sandbox.
API (6)
Types and contracts
Public types and contracts.
Audit: Describes the backend configuration that supported an execution result, reported across filesystem, process, network, and environment dimensions.EnvironmentFilesystemNetworkProcessRunner
Source
Source: lib/sandbox/src/audit.zig
zig
const std = @import("std");pub const Runner = enum { staging, bubblewrap_overlay, macos_staging, windows_staging,};pub const Filesystem = enum { copied, overlay,};pub const Process = enum { host, bubblewrap_namespace,};pub const Network = enum { inherited, bubblewrap_namespace,};pub const Environment = enum { inherited, replaced,};/// Describes the backend configuration that supported an execution result,/// reported across filesystem, process, network, and environment dimensions./// The backend constructs this record directly from the selected runner and run/// plan rather than from runtime measurements.////// Callers evaluate each dimension independently because one configuration/// choice implies nothing about another. For example, a Linux Bubblewrap run/// can establish a private process namespace while still sharing the host/// network namespace.pub const Audit = struct { runner: Runner = .staging, filesystem: Filesystem = .copied, process: Process = .host, network: Network = .inherited, environment: Environment = .inherited,};test "audit records effective staging isolation" { const audit = Audit{}; try std.testing.expectEqual(Runner.staging, audit.runner); try std.testing.expectEqual(Filesystem.copied, audit.filesystem); try std.testing.expectEqual(Process.host, audit.process); try std.testing.expectEqual(Network.inherited, audit.network); try std.testing.expectEqual(Environment.inherited, audit.environment);}Source: lib/sandbox/src/root.zig:28
zig
pub const audit = @import("audit.zig");Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |