Skip to main content

LITEINST_CONFIG_FINGERPRINT_ENV

Constant LITEINST_CONFIG_FINGERPRINT_ENV 

Source
pub const LITEINST_CONFIG_FINGERPRINT_ENV: &'static str;
Expand description

Environment variable carrying the coordinator’s fingerprint (detcore::config_wire_fingerprint, which extends config_wire_fingerprint with Detcore’s global RPC definitions) to the in-guest LiteInst runtime (libdetcore_liteinst.so), which checks it before it decodes the configuration the coordinator sends. Without the check, a runtime built from another tree fails with a bare decoding error that names neither build (https://github.com/rrnewton/hermit/issues/3986). The runtime removes it once checked, as it removes its DETLOG variables: the value is zeroed in the environment block and the variable is unset, so the fingerprint never reaches the guest.