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.
More on Firewalls, MAC & Compliance
How do ufw, firewalld, nftables and iptables relate?BeginnerConfigure ufw for a web server with SSH only from the office.BeginnerExplain firewalld zones and runtime vs permanent configuration.IntermediateWrite a minimal nftables ruleset for a server.AdvancedWhy are nftables preferred over iptables at scale?AdvancedHow do you avoid locking yourself out when changing remote firewall rules?Intermediate