[Devel] [PATCH rh8 23/28] ve/kmod/whitelist: Allow ts_kmp module autoloading
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Apr 13 11:25:33 MSK 2021
From: Kirill Tkhai <ktkhai at virtuozzo.com>
Otherwise rules like below can't applied from inside CT,
when the module is not loaded.
$iptables -I FORWARD -m string --string "xxxxxx" --algo kmp --to 65535 -j DROP
https://jira.sw.ru/browse/PSBM-97729
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
(cherry picked from vz7 commit
2e3b2c332d41 ("ve/modules: Add ts_kmp to allowed modules"))
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
kernel/kmod.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/kmod.c b/kernel/kmod.c
index 01b5ab352249..0386e51da493 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -300,6 +300,9 @@ static const char * const ve0_allowed_mod[] = {
"ip_vs_sh",
"ip_vs_lblcr",
"ip_vs_lc",
+
+ /* string */
+ "ts_kmp",
};
/*
--
2.28.0
More information about the Devel
mailing list