netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 04/31 DO NOT APPLY] enable netfilter in netns
@ 2008-07-21 16:33 Alexey Dobriyan
  2008-07-21 17:01 ` Patrick McHardy
  0 siblings, 1 reply; 5+ messages in thread
From: Alexey Dobriyan @ 2008-07-21 16:33 UTC (permalink / raw)
  To: kaber
  Cc: netdev, netfilter-devel, xemul, den, ebiederm, dlezcano,
	benjamin.thery


	Only for testing.

--- a/net/netfilter/core.c
+++ b/net/netfilter/core.c
@@ -165,14 +165,6 @@ int nf_hook_slow(int pf, unsigned int hook, struct sk_buff *skb,
 	unsigned int verdict;
 	int ret = 0;
 
-#ifdef CONFIG_NET_NS
-	struct net *net;
-
-	net = indev == NULL ? dev_net(outdev) : dev_net(indev);
-	if (net != &init_net)
-		return 1;
-#endif
-
 	/* We may already have this, but read-locks nest anyway */
 	rcu_read_lock();
 
--- a/net/netfilter/nf_sockopt.c
+++ b/net/netfilter/nf_sockopt.c
@@ -65,9 +65,6 @@ static struct nf_sockopt_ops *nf_sockopt_find(struct sock *sk, int pf,
 {
 	struct nf_sockopt_ops *ops;
 
-	if (!net_eq(sock_net(sk), &init_net))
-		return ERR_PTR(-ENOPROTOOPT);
-
 	if (mutex_lock_interruptible(&nf_sockopt_mutex) != 0)
 		return ERR_PTR(-EINTR);
 
-- 
1.5.4.5



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-07-21 17:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21 16:33 [PATCH 04/31 DO NOT APPLY] enable netfilter in netns Alexey Dobriyan
2008-07-21 17:01 ` Patrick McHardy
2008-07-21 17:07   ` David Miller
2008-07-21 17:17     ` Alexey Dobriyan
2008-07-21 17:14   ` Alexey Dobriyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).