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
1by the runtime in the environment of everymur runsubprocess 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_ENVis exactly1. - host_
warnings_ reported_ in host_warnings_reportedover a given value ofHOST_WARNINGS_REPORTED_ENV: true for exactlySome("1"). Unset, empty,0,trueand every other value leave the warnings to this process.