2020-08-10 10:44:43 +03:00
|
|
|
From 36dc5cf3039c0751fe95370a247ca1c23c06571c Mon Sep 17 00:00:00 2001
|
|
|
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
|
|
Date: Mon, 10 Aug 2020 10:38:20 +0300
|
|
|
|
Subject: [PATCH] ROSA: ima: allow to off modules signature check dynamically
|
|
|
|
|
|
|
|
Allow module.sig_enforce=0 kernel cmdline, not only module.sig_enforce=1
|
2020-08-10 10:47:03 +03:00
|
|
|
It allows to keep CONFIG_MODULE_SIG_FORCE=y, but disable it when really needed
|
|
|
|
without recompiling the kernel (it may be impossible, e.g. in certified systems).
|
2020-08-10 10:44:43 +03:00
|
|
|
|
|
|
|
GRUB or another bootloader is password-protected when needed,
|
|
|
|
so I am not afraid much that someone will be able to turn it off when not needed.
|
|
|
|
|
|
|
|
ROSA-specific patch.
|
2020-08-20 09:40:21 +03:00
|
|
|
This violates requirements of "secure boot", but currently we do not have secure boot in ROSA.
|
2020-08-10 10:44:43 +03:00
|
|
|
|
|
|
|
Signed-off-by: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
|
|
---
|
|
|
|
kernel/module.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/kernel/module.c b/kernel/module.c
|
|
|
|
index 6baa1080c..118d8ee60 100644
|
|
|
|
--- a/kernel/module.c
|
|
|
|
+++ b/kernel/module.c
|
2021-07-01 00:12:29 +03:00
|
|
|
@@ -274,7 +274,7 @@
|
2020-08-10 10:44:43 +03:00
|
|
|
|
2021-07-01 00:12:29 +03:00
|
|
|
#ifdef CONFIG_MODULE_SIG
|
2020-08-10 10:44:43 +03:00
|
|
|
static bool sig_enforce = IS_ENABLED(CONFIG_MODULE_SIG_FORCE);
|
|
|
|
-module_param(sig_enforce, bool_enable_only, 0644);
|
|
|
|
+module_param(sig_enforce, bool, 0644);
|
|
|
|
|
2021-07-01 00:12:29 +03:00
|
|
|
void set_module_sig_enforced(void)
|
|
|
|
{
|
|
|
|
|
2020-08-10 10:44:43 +03:00
|
|
|
--
|
|
|
|
2.17.1
|
|
|
|
|