From 2a6b2459f2752e41f5e158ba39c5cc7ec5b8840b Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 15 Feb 2023 17:08:28 +0100 Subject: [PATCH] MT#56647 kernel-module: Add MODULE_ALIAS for ipt and ip6t iptables support These are the entries the kernel will try to look for when userspace tries to use the RTPENGINE support, but the module is called xt_RTPENGINE so the kernel does not find it and thus cannot autoload it. The problem is that we have startup code that sets up iptables rules, and will fail if the module has not yet been loaded. By adding these aliases we are no longer concerned about the ordering, and can let the kernel autoload the modules when they are needed. Change-Id: I43a54af4e32adf755538c57df711da048c720030 --- kernel-module/xt_RTPENGINE.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel-module/xt_RTPENGINE.c b/kernel-module/xt_RTPENGINE.c index cf016e21e..eea5096f6 100644 --- a/kernel-module/xt_RTPENGINE.c +++ b/kernel-module/xt_RTPENGINE.c @@ -46,6 +46,8 @@ MODULE_LICENSE("GPL"); #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,12,0) MODULE_IMPORT_NS(CRYPTO_INTERNAL); #endif +MODULE_ALIAS("ipt_RTPENGINE"); +MODULE_ALIAS("ip6t_RTPENGINE"); // fix for older compilers #ifndef RHEL_RELEASE_VERSION