Skip to content

Commit 1984dc2

Browse files
t-8chmimizohar
authored andcommitted
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>
1 parent 658d5c7 commit 1984dc2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arch/powerpc/kernel/ima_arch.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ static const char *const secure_and_trusted_rules[] = {
5858
const char *const *arch_get_ima_policy(void)
5959
{
6060
if (is_ppc_secureboot_enabled()) {
61-
if (IS_ENABLED(CONFIG_MODULE_SIG))
62-
set_module_sig_enforced();
61+
set_module_sig_enforced();
6362

6463
if (is_ppc_trustedboot_enabled())
6564
return secure_and_trusted_rules;

0 commit comments

Comments
 (0)