mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
module: Move extra signature support out of core code
No functional change. This patch migrates additional module signature check code from core module code into kernel/module/signing.c. Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Aaron Tomlin <atomlin@redhat.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
This commit is contained in:
committed by
Luis Chamberlain
parent
b33465fe9c
commit
0c1e42805c
@@ -672,7 +672,6 @@ static inline bool is_livepatch_module(struct module *mod)
|
||||
#endif
|
||||
}
|
||||
|
||||
bool is_module_sig_enforced(void);
|
||||
void set_module_sig_enforced(void);
|
||||
|
||||
#else /* !CONFIG_MODULES... */
|
||||
@@ -799,10 +798,6 @@ static inline bool module_requested_async_probing(struct module *module)
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline bool is_module_sig_enforced(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline void set_module_sig_enforced(void)
|
||||
{
|
||||
@@ -854,11 +849,18 @@ static inline bool retpoline_module_ok(bool has_retpoline)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MODULE_SIG
|
||||
bool is_module_sig_enforced(void);
|
||||
|
||||
static inline bool module_sig_ok(struct module *module)
|
||||
{
|
||||
return module->sig_ok;
|
||||
}
|
||||
#else /* !CONFIG_MODULE_SIG */
|
||||
static inline bool is_module_sig_enforced(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline bool module_sig_ok(struct module *module)
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user