[Devel] [PATCH rh7] modules: Add ts_kmp to allowed modules

Kirill Tkhai ktkhai at virtuozzo.com
Wed Sep 11 13:59:23 MSK 2019


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>
---
 kernel/kmod.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/kernel/kmod.c b/kernel/kmod.c
index a260658f3471..a4b7a539cc6e 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -447,6 +447,9 @@ static const char * const ve0_allowed_mod[] = {
 	"ip_vs_sh",
 	"ip_vs_lblcr",
 	"ip_vs_lc",
+
+	/* string */
+	"ts_kmp",
 };
 
 /*



More information about the Devel mailing list