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/KERNEL-NEEDS.md

Kernel requirements for the current graph follower

heimdall kernel needs --mode graph-follower --json exports the strict runner's requirements plus the current opt-in graph job's kernel configuration needs. It uses the existing nornir.kernel-runtime-needs/1 schema. The job category means jobs using the document's selected mode. The default strict document is unchanged. This command only describes requirements and makes no kernel probe or attachment.

Heimdall's current follower uses tracepoints, a notification kprobe and BTF task helpers on x86_64 Linux 6.8. The requirements follow the implemented host loader in crates/heimdall-follower-host, the eBPF source in this directory, and Aya 0.14.0's attachment path. The exported additions are:

Configuration Current use
BPF, BPF_SYSCALL Programs, maps, persistent bpffs pins and links
BPF_EVENTS, PERF_EVENTS Aya's tracepoint and kprobe perf attachments
FTRACE, TRACING, TRACEPOINTS, FTRACE_SYSCALLS Syscall, task and signal events; tracefs format checks
KPROBES, KPROBE_EVENTS, KALLSYMS Locate and attach the supported seccomp-notification function
DEBUG_INFO_BTF Typed current-task and register helpers
PROC_FS, PROC_SYSCTL, SYSCTL Kernel release, symbols, task and namespace identity
SYSFS Aya's kprobe perf event-source type
FHANDLE Verify the owned cgroup handle before persisting links

Every name above has the CONFIG_ prefix and value y in the document. Existing strict cgroup, namespace, seccomp, Landlock, broker and mount rows remain. Kconfig must resolve its dependencies and the built configuration must satisfy the generated requirements. For example, the kernel row must choose debug-info settings and tooling compatible with BTF; an ignored assignment is not support.

The Linux 6.8 configuration sources are tracing, BPF, general kernel options, procfs, and BTF/debug information. The typed helper definitions and BPF build rules support the helper and persistence mapping. kernel-needs-source-hashes.json records the inspected source identities. These are facts about the current implementation; a future attachment mechanism must update its requirements.

Build Thing consumes the exported file through its existing command:

heimdall kernel needs --mode graph-follower --json > follower-needs.json
tunnr-build-thing kernel requires-from-needs ROW --needs follower-needs.json --edge kernel

Review the generated [[build.installer.requires]] rows and put them in the consumer's kernel declaration. The consumer's fragment must already state its CONFIG_LSM list so the converter preserves its other members and ordering. This command describes the runtime requirements. It does not supply a complete workload graph or authorize a kernel removal from absent observations.

Configuration is only one part of admission. Tracefs, procfs, sysfs and bpffs must be mounted at the locations used by the loader, and the loader must have the required privileges. The existing runner still checks the supported release and architecture, initial namespaces, event layouts, notification symbol, graph and executable bindings, cgroup ownership and pin lifetime. Kernel lockdown or other runtime policy can still refuse attachment. None of these conditions is attested by successfully printing the needs document.

The CLI regression exercises JSON and text export and the shared schema validator without touching kernel state. Kernel configuration/removal and follower attachment validation belong only in disposable VMs.