summaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-05-09 15:54:40 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-09 15:54:40 -0400
commit7664cd6e3a0b2709f04c07435e96c7c85e7d7324 (patch)
treed270574b311da6e449ad6dcea0bfc16e13d5aa78 /include/linux/module.h
parent882388056194d2d4c3f589b194b6bdcc47e677e8 (diff)
parent2bfebea90dd5e8c57ae1021a5d1bb6c1057eee6d (diff)
Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull intgrity updates from James Morris: "This contains just three patches, the remainder were either included in other pull requests (eg. audit, lockdown) or will be upstreamed via other subsystems (eg. kselftests, Power). Included here is one bug fix, one documentation update, and extending the x86 IMA arch policy rules to coordinate the different kernel module signature verification methods" * 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: doc/kernel-parameters.txt: Deprecate ima_appraise_tcb x86/ima: add missing include x86/ima: require signed kernel modules
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 484b5cbb3410..8f75277d4cef 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -677,6 +677,7 @@ static inline bool is_livepatch_module(struct module *mod)
677#endif /* CONFIG_LIVEPATCH */ 677#endif /* CONFIG_LIVEPATCH */
678 678
679bool is_module_sig_enforced(void); 679bool is_module_sig_enforced(void);
680void set_module_sig_enforced(void);
680 681
681#else /* !CONFIG_MODULES... */ 682#else /* !CONFIG_MODULES... */
682 683
@@ -803,6 +804,10 @@ static inline bool is_module_sig_enforced(void)
803 return false; 804 return false;
804} 805}
805 806
807static inline void set_module_sig_enforced(void)
808{
809}
810
806/* Dereference module function descriptor */ 811/* Dereference module function descriptor */
807static inline 812static inline
808void *dereference_module_function_descriptor(struct module *mod, void *ptr) 813void *dereference_module_function_descriptor(struct module *mod, void *ptr)