mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00:00
ima: efi: Drop unnecessary check for CONFIG_MODULE_SIG/CONFIG_KEXEC_SIG
When configuration settings are disabled the guarded functions are defined as empty stubs, so the check is unnecessary. Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: Mimi Zohar <[email protected]> Reviewed-by: Aaron Tomlin <[email protected]> Reviewed-by: Nicolas Schier <[email protected]> [[email protected]: fixed merge conflict with commit 63e8a44395a4] Signed-off-by: Mimi Zohar <[email protected]>
This commit is contained in:
committed by
Mimi Zohar
parent
01baa39cf5
commit
658d5c72fc
@@ -25,10 +25,8 @@ static const char * const sb_arch_rules[] = {
|
||||
const char * const *arch_get_ima_policy(void)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_IMA_ARCH_POLICY) && arch_get_secureboot()) {
|
||||
if (IS_ENABLED(CONFIG_MODULE_SIG))
|
||||
set_module_sig_enforced();
|
||||
if (IS_ENABLED(CONFIG_KEXEC_SIG))
|
||||
set_kexec_sig_enforced();
|
||||
set_module_sig_enforced();
|
||||
set_kexec_sig_enforced();
|
||||
return sb_arch_rules;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user