CLI-Anything Bundle #54 — Kernel Maintenance Trust Recon Pack
Four agent-native read-only harnesses that census the kernel maintenance + DMA trust surface: is the reboot-into-new-kernel gate closed, does the crash reservation match what the boot cmdline promised, are loaded livepatches actually enabled with root-only module files, does SysRq leave a raw crash/reboot button within reach, and is the IOMMU truly standing between devices and memory. No other bundle owns this layer — sysctl/dmesg/boot knobs (Bundle #14), probe/filter/trace (Bundle #52), boot-integrity lockdown/IMA (Bundle #41) are adjacent, not this.
- kexgatepeek — kexec gate + crash-reservation census: the kexec_load_disabled digit law (0 = KEXEC_LOAD_ENABLED finding — loader-grade image loading stands open; 1 = hardened posture), /sys/kernel/kexec_* state rows (reservation bytes, crash/standby loaded, honest per-file absence), the crashkernel= promise law (cmdline promises a reservation while kexec_crash_size is 0 = CRASHKERNEL_NOT_HONORED finding), and the reboot-loader census (/etc/default/kexec + /etc/sysconfig/kexec: KEY=VALUE grammar, the -s signature law — KEXEC_ARGS without -s = KEXEC_UNSIGNED_REBOOT_LOAD finding, sensitive-name values masked ***:LEN, battery-canary pinned). Full absence rc6.
- livepatchpeek — livepatch trust census: per-patch enabled digit law (0 = LIVEPATCH_ENABLED_FALSE finding — loaded-but-disabled is dead weight + surprise surface), transition='1' never guesses stuck, the module file law (/lib/modules/<release>/livepatch/*.ko stat truth — never exec'd; world/group-writable + non-root-owner findings), /proc/modules presence census (PATCH_NOT_LOADED honest rows), kpatch config with the sensitive-name mask law, NO_LIVEPATCH_SUPPORT honest posture.
- sysrqpeek — SysRq census: the SysRq digit law (0 = clean posture, 1 = SYSRQ_ALL_ENABLED finding, every set bit named per function — 128 = SYSRQ_REBOOT_BIT, 64 = SYSRQ_SIGNAL_ALL_BIT, the rest as named rows, out-of-range/non-digit = UNPARSABLE with the token), and the sysrq-trigger write-surface law (stat truth, world/group-writable = findings, S_IFREG, honest unreadable/absent verdicts).
- iommypeek — IOMMU/VFIO posture census: the cmdline probe law (iommu=/intel_iommu=/amd_iommu=/dmar= carried; off = IOMMU_CMDLINE_OFF finding; on/force/pt posture rows), the groups census (/sys/kernel/iommu_groups + per-group device counts, caps as data; zero groups + demanded = IOMMU_ENABLED_NO_GROUPS finding), and the VFIO unsafe law (enable_unsafe_noiommu_mode 'Y' = VFIO_NOIOMMU_ENABLED finding; absent = vfio_not_loaded honest row).
Battery truth: 275 executed-assert checks per sweep (kexgatepeek 64 + livepatchpeek 67 + sysrqpeek 71 + iommypeek 73) — python3 runner_count.py prints the counted truth. Fired ×2 on kit bytes + ×2 clean-room from THIS shipping zip; 0 failed every source. Zero test weakening; the masked-value canary and the read-only fingerprint law machine-checked every fire.
Laws (all four tools): zero subprocesses, zero network, zero writes, never exec; per-tool exit laws stated in each docstring and battery-asserted; sensitive-name values masked ***:LEN; honest absence is a verdict, never a fabricated clean; every report as human text and --json.
Run: cd <tool>/agent-harness && python3 -m cli_anything.<tool> --json — no pip required (stdlib-only, Python 3.8+, self-test batteries inside).
Bundle: CLI-Anything #54 · License: MIT · tikkunolam.today