summaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_rateest.c
diff options
context:
space:
mode:
authorFlorian Westphal2018-08-30 10:42:55 +0200
committerPablo Neira Ayuso2018-09-17 11:40:06 +0200
commit0ef235c71755c5f36c50282fcf2d7d08709be344 (patch)
tree1c37473a4adad10602737b3db45d7315d58984c8 /net/netfilter/xt_rateest.c
parentnetfilter: nf_tables: split set destruction in deactivate and destroy phase (diff)
downloadkernel-qcow2-linux-0ef235c71755c5f36c50282fcf2d7d08709be344.tar.gz
kernel-qcow2-linux-0ef235c71755c5f36c50282fcf2d7d08709be344.tar.xz
kernel-qcow2-linux-0ef235c71755c5f36c50282fcf2d7d08709be344.zip
netfilter: nf_tables: warn when expr implements only one of activate/deactivate
->destroy is only allowed to free data, or do other cleanups that do not have side effects on other state, such as visibility to other netlink requests. Such things need to be done in ->deactivate. As a transaction can fail, we need to make sure we can undo such operations, therefore ->activate() has to be provided too. So print a warning and refuse registration if expr->ops provides only one of the two operations. v2: fix nft_expr_check_ops to not repeat same check twice (Jones Desougi) Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_rateest.c')
0 files changed, 0 insertions, 0 deletions