History

x86/ima: require signed kernel modules

Have the IMA architecture specific policy require signed kernel modules on systems with secure boot mode enabled; and coordinate the different signature verification methods, so only one signature is required. Requiring appended kernel module signatures may be configured, enabled on the boot command line, or with this patch enabled in secure boot mode. This patch defines set_module_sig_enforced(). To coordinate between appended kernel module signatures and IMA signatures, only define an IMA MODULE_CHECK policy rule if CONFIG_MODULE_SIG is not enabled. A custom IMA policy may still define and require an IMA signature.

Mimi Zohar committed 7 years ago

Commit 8db5da01 parent 8d93e953 files · +18 −1Browse files

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

Unified · Split

include/linux/module.h+5−0
@@ -676,6 +676,7 @@ static inline bool is_livepatch_module(struct module *mod) · 675 unmodified lines
676676 #endif /* CONFIG_LIVEPATCH */
677677
678678 bool is_module_sig_enforced(void);
679+void set_module_sig_enforced(void);
679680
680681 #else /* !CONFIG_MODULES... */
681682
@@ -796,6 +797,10 @@ static inline bool is_module_sig_enforced(void) · 114 unmodified lines
796797 return false;
797798 }
798799
800+static inline void set_module_sig_enforced(void)
801+{
802+}
803+
799804 /* Dereference module function descriptor */
800805 static inline
801806 void *dereference_module_function_descriptor(struct module *mod, void *ptr)

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