[PATCH] xtables-compat-multi.c: Allow symlink of ebtables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch allows one to force a subsystem that one does not wish to modify
(e.g. libvirt) to use the ebtables compatibility layer.

ebtables-compat was already a symlink to xtables-compat-multi but ebtables was a
stand-alone program. So one could move it out of the way before making the
symlink as below:

 lrwxrwxrwx 1 root root       20 Feb 24 11:03 ebtables -> xtables-compat-multi
 -rwxr-xr-x 1 root root    75176 Feb 24 11:03 ebtables.orig

With this patch, kernel modules ebtable_filter & ebtables are no longer loaded.

Signed-off-by: Duncan Roe <duncan_roe@xxxxxxxxxxxxxxx>
---
 iptables/xtables-compat-multi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/iptables/xtables-compat-multi.c b/iptables/xtables-compat-multi.c
index 3e24631..032911e 100644
--- a/iptables/xtables-compat-multi.c
+++ b/iptables/xtables-compat-multi.c
@@ -33,6 +33,7 @@ static const struct subcommand multi_subcommands[] = {
 	{"arptables",			xtables_arp_main},
 	{"arptables-compat",		xtables_arp_main},
 	{"ebtables-compat",		xtables_eb_main},
+	{"ebtables",			xtables_eb_main},
 	{NULL},
 };
 
-- 
2.9.0

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux