[Devel] [PATCH rh8 15/28] ve/kmod/whitelist: Allow dummy module autoloading

Konstantin Khorenko khorenko at virtuozzo.com
Tue Apr 13 11:25:25 MSK 2021


From: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>

After allowing dummy devices in container in bug PSBM-43329 by commit
6061ed860950 ("ve/net/dummy: enable support in a container") docker-ui
testcase TestDaemonIP was unXFAIed but it still fails to create dummy
because module is not automaticly loaded in rtnl_newlink:

ip link add name dummy_test type dummy
RTNETLINK answers: Operation not supported

So allow the module.

https://jira.sw.ru/browse/PSBM-52061
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Reviewed-by: Kirill Tkhai <ktkhai at virtuozzo.com>

(cherry picked from vz7 commit 3919de0d2585ac861ed237b9b585f2e3bb2e59bd)
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 kernel/kmod.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/kmod.c b/kernel/kmod.c
index 0848a0302b23..12a5ef4ee842 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -261,6 +261,8 @@ static const char * const ve0_allowed_mod[] = {
 
 	/* netlink_diag */
 	"net-pf-16-proto-4-type-16",	/* PF_NETLINK, NETLINK_SOCK_DIAG, AF_NETLINK */
+
+	"rtnl-link-dummy",
 };
 
 /*
-- 
2.28.0



More information about the Devel mailing list