]> git.ipfire.org Git - thirdparty/linux.git/commit
netfilter: nf_tables: Reintroduce shortened deletion notifications
authorPhil Sutter <phil@nwl.cc>
Fri, 13 Jun 2025 13:37:03 +0000 (15:37 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 10 Jul 2025 01:01:14 +0000 (03:01 +0200)
commita1050dd071682d2c9d8d6d5c96119f8f401b62f0
tree1843524405355af2c129756cd605f0e30ebbd5dd
parent8080357a8c6cf4905bbd8969412c19d34be3395e
netfilter: nf_tables: Reintroduce shortened deletion notifications

Restore commit 28339b21a365 ("netfilter: nf_tables: do not send complete
notification of deletions") and fix it:

- Avoid upfront modification of 'event' variable so the conditionals
  become effective.
- Always include NFTA_OBJ_TYPE attribute in object notifications, user
  space requires it for proper deserialisation.
- Catch DESTROY events, too.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c