]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8add4a932ffe9f63ed4a474aab6ad80ce23b9246
treee828a7a7716d382cc0ad63f21fe448b78584ac7a
parentf5237cc12d65c4b2991cb6f79a81dbd1676a479d
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