Interview Prep/Linux/Firewalls, MAC & Compliance

What is kernel lockdown and when would you enable it?

AdvancedProductionFirewalls, MAC & Compliance
Answer

Lockdown (an LSM) restricts root from modifying the running kernel: no unsigned modules, no /dev/mem or /dev/kmem writes, no kexec of unsigned kernels, restricted BPF and perf in confidentiality mode. It is enabled automatically with Secure Boot on many distros (integrity mode). Check cat /sys/kernel/security/lockdown. It hardens against rootkits but can break tools like some eBPF tracers and out-of-tree drivers.

All Linux questions Roadmap: Linux

More on Firewalls, MAC & Compliance