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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:43:17 +0000 (14:43 -0700)
commita251cb2078af1e3be62847547746bf13f75c6d90
tree8a4613c24818ae4495d9bd15b44f9c2279a97aed
parent1ad248d2d57fdc457283072bde67931d5b564eb7
netfilter: nftables: Do not run chains in the wrong network namespace

commit fdab6a4cbd8933092155449ca7253eba973ada14 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_tables_core.c