]> 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)
commit1d5555d314bd8e0214c92f1c426b4a72e820db61
treee828a7a7716d382cc0ad63f21fe448b78584ac7a
parent18765af170a76c3ef41a545365172a28c1dfbaca
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