Skip to main content

Crate platform

Crate platform 

Source
Expand description

This machine: base’s four execution contracts answered with the local process table, filesystem, network and OS sandbox, plus the daemon’s crash hook and the identity a discovery file records for a running process.

base defines the contracts and never names this crate; whatever runs tools on a real machine depends on both.

Re-exports§

pub use env::apply_subprocess_env;
pub use filesystem::LocalFileSystem;
pub use network::configure_system_proxy;
pub use network::install_tls_provider;
pub use network::proxy_variables_set;
pub use network::use_system_proxy_now;
pub use network::LocalNetwork;
pub use process::GroupLedger;
pub use process::LocalProcess;
pub use sandbox::PlatformSandbox;

Modules§

crash
What a panicking daemon leaves behind: a crash record, and none of its commands.
env
sandbox.env applied to a command started on this machine.
filesystem
LocalFileSystem — this machine’s disk.
lineage
Whether a process is one this process started.
network
LocalNetwork — outbound requests from this process.
orphans
The process groups this process has started and would leave running if it died without stopping them.
process
LocalProcess — a child process on this machine.
process_identity
Pid-reuse-safe process liveness.
sandbox
The platform sandbox backends, macOS sandbox-exec and Linux bubblewrap: each confines a command for a SandboxPolicy and reports what it delivered as Enforcement. The policy follows the call’s ExecProfile (tools::bash::sandbox): Session is the session’s; Unattended adds deny_ipc_escapes; Strict (SandboxPolicy::strict) cuts the network, writes only TMPDIR, reads only its roots (ReadScope::Only), env Minimal.

Functions§

local_providers
local_providers_with
Child processes start from env.
local_providers_with_ledger
local_providers_with, with every process group a command starts recorded in ledger.