mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00:00
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 <[email protected]> Reviewed-by: Mimi Zohar <[email protected]> Reviewed-by: Aaron Tomlin <[email protected]> Reviewed-by: Nicolas Schier <[email protected]> Signed-off-by: Mimi Zohar <[email protected]>
This commit is contained in:
committed by
Mimi Zohar
parent
658d5c72fc
commit
1984dc2c2f
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user