Skip to content

Commit c554b89

Browse files
jiazhang0Jessica Yu
authored andcommitted
module: Allow to always show the status of modsign
The sig_enforce parameter could be always shown to reflect the current status of signature enforcement. For the case of CONFIG_MODULE_SIG_FORCE=y, this modification doesn't do anything, since sig_enforce can only be enabled, and not disabled, even via the kernel cmdline. Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com> [jeyu: reworded commit message to provide clarification] Signed-off-by: Jessica Yu <jeyu@kernel.org>
1 parent 2c8fd26 commit c554b89

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/module.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,7 @@ static void module_assert_mutex_or_preempt(void)
274274
}
275275

276276
static bool sig_enforce = IS_ENABLED(CONFIG_MODULE_SIG_FORCE);
277-
#ifndef CONFIG_MODULE_SIG_FORCE
278277
module_param(sig_enforce, bool_enable_only, 0644);
279-
#endif /* !CONFIG_MODULE_SIG_FORCE */
280278

281279
/*
282280
* Export sig_enforce kernel cmdline parameter to allow other subsystems rely

0 commit comments

Comments
 (0)