Skip to content

Add the ability to lock down access to the running kernel image

Matthew Garrett linux-security-module lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest27 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/27Add the ability to lock down access to the running kernel imageinclude/linux/kernel.h include/linux/security.h security/Kconfig +2 more+102 -10 replies
2/27Add a SysRq option to lift kernel lockdownarch/x86/include/asm/setup.h drivers/input/misc/uinput.c drivers/tty/sysrq.c +5 more+85 -83 replies
3/27Enforce module signatures if the kernel is locked downkernel/module.c+32 -73 replies
4/27Restrict /dev/{mem,kmem,port} when the kernel is locked downdrivers/char/mem.c+2 -00 replies
5/27kexec_load: Disable at runtime if the kernel is locked downkernel/kexec.c+7 -00 replies
6/27Copy secure_boot flag in boot params across kexec rebootarch/x86/kernel/kexec-bzimage64.c+1 -00 replies
7/27kexec_file: split KEXEC_VERIFY_SIG into KEXEC_SIG and KEXEC_SIG_FORCEarch/x86/Kconfig crypto/asymmetric_keys/verify_pefile.c include/linux/kexec.h +1 more+61 -150 replies
8/27kexec_file: Restrict at runtime if the kernel is locked downkernel/kexec_file.c+6 -00 replies
9/27hibernate: Disable when the kernel is locked downkernel/power/hibernate.c+1 -13 replies
10/27uswsusp: Disable when the kernel is locked downkernel/power/user.c+3 -00 replies
11/27PCI: Lock down BAR access when the kernel is locked downdrivers/pci/pci-sysfs.c drivers/pci/proc.c drivers/pci/syscall.c+19 -20 replies
12/27x86: Lock down IO port access when the kernel is locked downarch/x86/kernel/ioport.c+4 -20 replies
13/27x86/msr: Restrict MSR access when the kernel is locked downarch/x86/kernel/msr.c+10 -00 replies
14/27ACPI: Limit access to custom_method when the kernel is locked downdrivers/acpi/custom_method.c+3 -00 replies
15/27acpi: Ignore acpi_rsdp kernel param when the kernel has been locked downdrivers/acpi/osl.c+1 -10 replies
16/27acpi: Disable ACPI table override if the kernel is locked downdrivers/acpi/tables.c+5 -00 replies
17/27acpi: Disable APEI error injection if the kernel is locked downdrivers/acpi/apei/einj.c+3 -00 replies
18/27Prohibit PCMCIA CIS storage when the kernel is locked downdrivers/pcmcia/cistpl.c+3 -00 replies
19/27Lock down TIOCSSERIALdrivers/tty/serial/serial_core.c+6 -00 replies
20/27Lock down module params that specify hardware parameters (eg. ioport)kernel/params.c+21 -50 replies
21/27x86/mmiotrace: Lock down the testmmiotrace modulearch/x86/mm/testmmiotrace.c+3 -00 replies
22/27Lock down /proc/kcorefs/proc/kcore.c+2 -00 replies
23/27Lock down kprobeskernel/kprobes.c+3 -00 replies
24/27bpf: Restrict kernel image access functions when the kernel is locked downkernel/bpf/syscall.c+3 -00 replies
25/27Lock down perfkernel/events/core.c+5 -00 replies
26/27debugfs: Restrict debugfs when the kernel is locked downfs/debugfs/file.c fs/debugfs/inode.c+56 -22 replies
27/27lockdown: Print current->comm in restriction messagessecurity/lock_down.c+2 -20 replies

Reviews trailers per patch

17 of 27 patches have a Reviewed-by or Acked-by.

PatchJames MorrisJiri BohacLee, Chun-YiDave YoungBjorn HelgaasThomas GleixnerKees Cook
1/27A-b
2/27
3/27R-b
4/27R-b
5/27R-b R-b A-b
6/27R-b
7/27R-b
8/27R-b
9/27R-b
10/27R-b R-b
11/27R-b A-b
12/27R-b R-b
13/27R-b R-b A-b
14/27R-b
15/27R-b
16/27R-b
17/27R-b
18/27
19/27
20/27
21/27
22/27R-b
23/27
24/27
25/27
26/27
27/27

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v1 thread