Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/ima: Drop unnecessary check for CONFIG_MODULE_SIG

When CONFIG_MODULE_SIG is disabled set_module_sig_enforced() is defined
as an empty stub, so the check is unnecessary.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Reviewed-by: Aaron Tomlin <atomlin@atomlin.com>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>

authored by

Thomas Weißschuh and committed by
Mimi Zohar
1984dc2c 658d5c72

+1 -2
+1 -2
arch/powerpc/kernel/ima_arch.c
··· 58 58 const char *const *arch_get_ima_policy(void) 59 59 { 60 60 if (is_ppc_secureboot_enabled()) { 61 - if (IS_ENABLED(CONFIG_MODULE_SIG)) 62 - set_module_sig_enforced(); 61 + set_module_sig_enforced(); 63 62 64 63 if (is_ppc_trustedboot_enabled()) 65 64 return secure_and_trusted_rules;