[Devel,RH7] ve/kmod/whitelist: allow dummy module autoloading

Submitted by Pavel Tikhomirov on Sept. 30, 2016, 12:41 p.m.

Details

Message ID 1475239310-29825-1-git-send-email-ptikhomirov@virtuozzo.com
State New
Series "ve/kmod/whitelist: allow dummy module autoloading"
Headers show

Commit Message

Pavel Tikhomirov Sept. 30, 2016, 12:41 p.m.
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@virtuozzo.com>
---
 kernel/kmod.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/kernel/kmod.c b/kernel/kmod.c
index ef74971..e0ef148 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -419,6 +419,8 @@  static const char * const ve0_allowed_mod[] = {
 	"ip_set_hash:ip,port,net",
 	"ip_set_hash:net,iface",
 	"ip_set_list:set",
+
+	"rtnl-link-dummy",
 };
 
 /*

Comments

Kirill Tkhai Oct. 3, 2016, 8:55 a.m.
On 30.09.2016 15:41, Pavel Tikhomirov wrote:
> 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@virtuozzo.com>

Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com>

> ---
>  kernel/kmod.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/kernel/kmod.c b/kernel/kmod.c
> index ef74971..e0ef148 100644
> --- a/kernel/kmod.c
> +++ b/kernel/kmod.c
> @@ -419,6 +419,8 @@ static const char * const ve0_allowed_mod[] = {
>  	"ip_set_hash:ip,port,net",
>  	"ip_set_hash:net,iface",
>  	"ip_set_list:set",
> +
> +	"rtnl-link-dummy",
>  };
>  
>  /*
>