This reverts commit 05f27248a3f1e0154d22d77bbc7987b34e3d1936. netfilter/ipt_CLUSTERIP has been turned per net namespace upstream, so we'd better drop this hack and pull the upstream code instead. This will be done by the following patches.
Signed-off-by: Vladimir Davydov <[email protected]> --- net/ipv4/netfilter/ipt_CLUSTERIP.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c index 79944da8a70f..a2e2b61cd7da 100644 --- a/net/ipv4/netfilter/ipt_CLUSTERIP.c +++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c @@ -384,8 +384,7 @@ static int clusterip_tg_check(const struct xt_tgchk_param *par) return -EINVAL; } - dev = dev_get_by_name(get_exec_env()->ve_netns, - e->ip.iniface); + dev = dev_get_by_name(&init_net, e->ip.iniface); if (!dev) { pr_info("no such interface %s\n", e->ip.iniface); -- 2.1.4 _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
