Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/heimdall

runtime/graph-events/OCI-ATTACHMENT.md

Bounded OCI graph attachment

The optional graph-follower runner feature accepts explicit operator bindings between an OCI manifest, absolute program path, executable digest and graph pin. It prepares an immutable static image outside confinement, checks it again under the child's DAC/Landlock policy, installs the graph floor and waits on a private channel. The shim attaches persistent links before releasing that channel, then waits for the owned cgroup to drain, checks diagnostics and closes pins before producing its receipt. The parent verifies both inside floor and completed receipt before signing Graph protection. Enforced violations refuse the result. Services remain on the static path. A hash binding is an operator assertion, not a proof that the graph is semantically complete. This version accepts only static x86_64 ET_EXEC images on Linux 6.8 from initial PID/user namespaces.

The first actual OCI gate was RED with the broker enabled (4a78cbf): evidence/oci-broker-red.log. The notification hook saw initial exec before sys_enter, while no graph cursor existed. The fix validates the exact trusted exec notification without consuming admission; sys_enter rechecks it, and a broker-completed/denied exec is still refused at sys_exit. Model RED 51fdbb2 checks that the one-use admission cannot be replayed or consumed by notification. The focused fresh Oden gate then passes all eight Audit/Enforce, valid/reversed, broker-off/auto cases. The full fresh dwarf and Oden suites also pass, including four pin-mismatch refusals: evidence/oci-final-dwarf.log and evidence/oci-final-oden.log. Both guests are stopped. Full CI belongs to the integration receipt; this is not a general workload completeness claim.

Build the shim with --features youki,graph-follower,graph-zstd. The ordinary library build and service runner continue to use the static fallback. A library caller enables this path through HeimdallConfig.graph_follower, supplying a graphlaunch::Config with the BPF path and SHA-256 pin, private bpffs pin parent, and explicit graph/OCI-manifest/program/executable bindings. The policy still supplies its pinned graph and static profile. Missing bindings and pin changes refuse the job. Unsupported kernels/builds and incomplete graphs retain the existing reported static fallback. heimdall graph run requires a complete graph and refuses to report success on static fallback. It reads the native job and explicit configuration; see CLI usage.

Export the current job path's configuration requirements with heimdall kernel needs --mode graph-follower --json; Build Thing can turn them into kernel requirement rows. See kernel needs for the source mapping and runtime conditions that configuration alone cannot establish.

Build-only artifact recipe: sh runtime/graph-events/build-oci-gates.sh OUTPUT, inside pinned heim-ci 8d45632a with source at /src and output under /target. The executable fixture is assembled without a dynamic loader or libc. Execute run-oci-gates.sh only as root in a fresh disposable VM. It verifies signed results, valid completion with zero violations, reversed-order SIGKILL/refusal, Audit continuation, pin-mismatch refusals and removal of the selected pins.

Remaining scope: services, general real-program graph closure, dynamic image identity, operational orphan recovery and supervisor-crash controls, and cost measurement of this BPF object. Publishing requires the new library crates and the documented version bumps; no release is implied here.

The assembly fixtures/oci-target/main.S contains only getppid, geteuid and exit. Its valid path follows A -> F in Mimir's existing abcdf marker graph; an argument reverses those same two calls. This is an explicitly bound, synthetic static fixture. It does not claim that abcdf's projected graph covers the original Rust executable or its dynamic loader.

The command's final artifacts pass four Audit/Enforce and valid/reversed cases in a fresh dwarf VM: evidence/oci-cli-final-dwarf.log. Every emitted result verifies against the saved runner pin; Enforce refusal returns exit 4. Build with build-oci-command.sh and execute run-oci-command-gates.sh only in a disposable VM. The earlier Oden CLI log uses draft artifacts; final hashes are in validation.toml. The Oden OCI CI run was interrupted for the owner's host shutdown, so the combined branch's final CI receipt is required for merge.