]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: remove check against removal of inactive objects
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 15 Dec 2015 18:40:50 +0000 (19:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 Dec 2015 17:37:20 +0000 (18:37 +0100)
commit74ac1830ed6012d73f9855fe3e7064bfe0ea2204
treedf6e0cd3ac514923ff95062995be61beb746898b
parent950646ad1ae793b25c577056093faaebb9ec9835
netfilter: nf_tables: remove check against removal of inactive objects

The following sequence inside a batch, although not very useful, is
valid:

 add table foo
 ...
 delete table foo

This may be generated by some robot while applying some incremental
upgrade, so remove the defensive checks against this.

This patch keeps the check on the get/dump path by now, we have to
replace the inactive flag by introducing object generations.

Reported-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c