]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: bogus EBUSY errors in transactions
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 14 Jun 2023 08:38:08 +0000 (10:38 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 19 Jun 2023 15:03:22 +0000 (17:03 +0200)
commitcce0d7b174ff5412e8fc1db9614081fe314a87cd
treef11864229227856797c07acc497df85355889c38
parentb6b2b0cc5103612c59546cc1fea7e33814eae220
tests: shell: bogus EBUSY errors in transactions

Make sure reference tracking during transaction update is correct by
checking for bogus EBUSY error. For example, when deleting map with
chain reference X, followed by a delete chain X command.

This test is covering the following paths:

- prepare + abort (via -c/--check option)
- prepare + commit
- release (when netns is destroyed)

Reported-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/transactions/0051map_0 [new file with mode: 0755]