Skip to main content

Module host_warnings

Module host_warnings 

Source
Expand description

Host-level warnings: stated once per launch, not once per process.

A host-level warning is one whose condition and text depend on the host alone — the same for every process on the machine, whatever manifest it runs, such as W-SEC-013 (crate::runtime::warn_on_userns_restriction_disabled_host_wide). A warning gated on, or naming, something in a session’s own manifest is a fact about that session and is stated per session, outside this gate.

The process the operator started prints each host-level warning once: a plain mur run while staging its session, and mur run --roster from the launcher before any member starts. Every mur run subprocess the runtime starts — each formation member (crate::formation_launch) and each delegated or plan-step sub-capsule (crate::child_launch) — is started with HOST_WARNINGS_REPORTED_ENV set to 1, telling it that its launcher already did. mur doctor reports the host and is never gated.

The gate silences stderr only. What a session records about the host — session_start’s userns_grant — is written whatever this variable holds.

Constants§

HOST_WARNINGS_REPORTED_ENV
Set to 1 by the runtime in the environment of every mur run subprocess it starts. Any other value, or none, means this process prints the host-level warnings itself.

Functions§

host_warnings_reported
Whether this process’s launcher already printed the host-level warnings, so this process must not: true only when HOST_WARNINGS_REPORTED_ENV is exactly 1.
host_warnings_reported_in
host_warnings_reported over a given value of HOST_WARNINGS_REPORTED_ENV: true for exactly Some("1"). Unset, empty, 0, true and every other value leave the warnings to this process.