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
676#endif /* CONFIG_LIVEPATCH */676#endif /* CONFIG_LIVEPATCH */
677 677
678bool is_module_sig_enforced(void);678bool is_module_sig_enforced(void);
679void set_module_sig_enforced(void);
679 680
680#else /* !CONFIG_MODULES... */681#else /* !CONFIG_MODULES... */
681 682
@@ -796,6 +797,10 @@ static inline bool is_module_sig_enforced(void) · 114 unmodified lines
796 return false;797 return false;
797}798}
798 799
800static inline void set_module_sig_enforced(void)
801{
802}
803
799/* Dereference module function descriptor */804/* Dereference module function descriptor */
800static inline805static inline
801void *dereference_module_function_descriptor(struct module *mod, void *ptr)806void *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