diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2026-02-26 10:20:13 +0300 |
|---|---|---|
| committer | Mimi Zohar <zohar@linux.ibm.com> | 2026-03-08 15:26:08 +0300 |
| commit | 1984dc2c2ff490701d884e568f0e7dab6ec0dbff (patch) | |
| tree | ea177380d83fae8d22e5a65122364e5ef31bd156 | |
| parent | 658d5c72fc5d14fb52419ecf090ec332f46cf262 (diff) | |
| download | linux-1984dc2c2ff490701d884e568f0e7dab6ec0dbff.tar.xz | |
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>
| -rw-r--r-- | arch/powerpc/kernel/ima_arch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/ima_arch.c b/arch/powerpc/kernel/ima_arch.c index 0d8892a03526..17f9304855e9 100644 --- a/arch/powerpc/kernel/ima_arch.c +++ b/arch/powerpc/kernel/ima_arch.c @@ -58,8 +58,7 @@ static const char *const secure_and_trusted_rules[] = { const char *const *arch_get_ima_policy(void) { if (is_ppc_secureboot_enabled()) { - if (IS_ENABLED(CONFIG_MODULE_SIG)) - set_module_sig_enforced(); + set_module_sig_enforced(); if (is_ppc_trustedboot_enabled()) return secure_and_trusted_rules; |
