]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: report EEXIST on overlaps
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 2 Aug 2020 01:05:25 +0000 (03:05 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 2 Aug 2020 17:53:45 +0000 (19:53 +0200)
commit4e92c9f7e2896ffc46694735a892673c1a23ea17
tree490f824a887672beda4e617510e3a89ca99e45af
parenta40dff9a5a42063c7f2ae9aadf128782756bf819
netfilter: nf_tables: report EEXIST on overlaps

Replace EBUSY by EEXIST in the following cases:

- If the user adds a chain with a different configuration such as different
  type, hook and priority.

- If the user adds a non-base chain that clashes with an existing basechain.

- If the user adds a { key : value } mapping element and the key exists
  but the value differs.

- If the device already belongs to an existing flowtable.

User describe that this error reporting is confusing:

- https://bugzilla.netfilter.org/show_bug.cgi?id=1176
- https://bugzilla.netfilter.org/show_bug.cgi?id=1413

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