History

kexec_load: Disable at runtime if the kernel is locked down

The kexec_load() syscall permits the loading and execution of arbitrary code in ring 0, which is something that lock-down is meant to prevent. It makes sense to disable kexec_load() in this situation. This does not affect kexec_file_load() syscall which can check for a signature on the image to be booted.

Matthew Garrett committed 7 years ago

Commit 7d31f461 parent 9b9d8dd3 files · +10 −0Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/security.h+1−0
@@ -105,6 +105,7 @@ enum lockdown_reason { · 104 unmodified lines
105105 LOCKDOWN_NONE,
106106 LOCKDOWN_MODULE_SIGNATURE,
107107 LOCKDOWN_DEV_MEM,
108+ LOCKDOWN_KEXEC,
108109 LOCKDOWN_INTEGRITY_MAX,
109110 LOCKDOWN_CONFIDENTIALITY_MAX,
110111 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t