What problem does it solve? Hardening a Linux host by blocking unused kernel modules is risky: a wrong module list can leave a remote or relocating host unbootable and unreachable, and silent modprobe overrides make failures nearly impossible to diagnose. This skill provides the safe procedure for jailing the kernel module namespace while keeping every mistake recoverable over SSH. ## Core Features & Use Cases - Allowlist-then-block method: Build a KEEP set from loaded modules, a baseline profile, and an explicit whitelist, expand it to its full dependency closure, then block everything else as a runtime-only modprobe override (never baked into the initramfs). - Safety gates: An invariant gate validated against a known-negative, a boot-critical hard-exempt tier (storage, NIC, KVM/LXC modules), and a mandatory cold-reboot test while the host is still physically recoverable. - Runtime-discovery loop: Diagnose silent blocks (modprobe exits 0 loading nothing, "Dependency failed" units) by logging refusals via a logger-based install directive and reading them back from journalctl. - Use Case: Hardening a Proxmox/LXC host before relocating it to a site with no console or out-of-band power, jailing roughly 97% of the module tree while guests, NICs, and storage keep working across cold reboots. ## Quick Start Ask the AI to safely block all unneeded kernel modules on a remote Linux host using a runtime-only modprobe allowlist with a reboot-recovery gate.