netfilter: nf_tables: bogus EBUSY in chain deletions
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2018 00:43:57 +0000 (02:43 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 9 May 2018 08:09:30 +0000 (10:09 +0200)
commitbb7b40aecbf778c0c83a5bd62b0f03ca9f49a618
treeab9b11fc54ad976c497d4d0d4f2a91b8209bbf58
parent732a8049f365f514d0607e03938491bf6cb0d620
netfilter: nf_tables: bogus EBUSY in chain deletions

When removing a rule that jumps to chain and such chain in the same
batch, this bogusly hits EBUSY. Add activate and deactivate operations
to expression that can be called from the preparation and the
commit/abort phases.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_immediate.c