[rh7] modules: Add ts_kmp to allowed modules

Submitted by Kirill Tkhai on Sept. 11, 2019, 10:59 a.m.

Details

Message ID 156819955657.18837.2613862819725285949.stgit@localhost.localdomain
State New
Series "modules: Add ts_kmp to allowed modules"
Headers show

Commit Message

Kirill Tkhai Sept. 11, 2019, 10:59 a.m.
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@virtuozzo.com>
---
 kernel/kmod.c |    3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

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",
 };
 
 /*