netfilter: nftables: Do not run chains in the wrong network namespace
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 19 Jun 2015 15:41:21 +0000 (10:41 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2015 13:23:22 +0000 (06:23 -0700)
commitfdab6a4cbd8933092155449ca7253eba973ada14
treee828a7a7716d382cc0ad63f21fe448b78584ac7a
parentdfe816c5e37272f2f3c1311f0e9934e1b4229261
netfilter: nftables: Do not run chains in the wrong network namespace

Currenlty nf_tables chains added in one network namespace are being
run in all network namespace.  The issues are myriad with the simplest
being an unprivileged user can cause any network packets to be dropped.

Address this by simply not running nf_tables chains in the wrong
network namespace.

Cc: stable@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_tables_core.c