netfilter: nf_tables: Audit log rule reset
authorPhil Sutter <phil@nwl.cc>
Tue, 29 Aug 2023 17:51:58 +0000 (19:51 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 30 Aug 2023 23:29:28 +0000 (01:29 +0200)
commitea078ae9108e25fc881c84369f7c03931d22e555
treebc99d41f0fbd900b2b53d4d84bd77ef24e206483
parent7e9be1124dbe7888907e82cab20164578e3f9ab7
netfilter: nf_tables: Audit log rule reset

Resetting rules' stateful data happens outside of the transaction logic,
so 'get' and 'dump' handlers have to emit audit log entries themselves.

Fixes: 8daa8fde3fc3f ("netfilter: nf_tables: Introduce NFT_MSG_GETRULE_RESET")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/audit.h
kernel/auditsc.c
net/netfilter/nf_tables_api.c