netfilter: nf_tables: do not refresh timeout when resetting element
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 2 Oct 2023 09:57:42 +0000 (11:57 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 12 Oct 2023 08:28:45 +0000 (10:28 +0200)
commit4c90bba60c26db7dc7df450f748e86440149786e
tree2edcade05b0cd8652f3a3b07dea5d422fa2df7c7
parentd51c42cdef5f961f63e39e172e4dfdcac54acd5e
netfilter: nf_tables: do not refresh timeout when resetting element

The dump and reset command should not refresh the timeout, this command
is intended to allow users to list existing stateful objects and reset
them, element expiration should be refresh via transaction instead with
a specific command to achieve this, otherwise this is entering combo
semantics that will be hard to be undone later (eg. a user asking to
retrieve counters but _not_ requiring to refresh expiration).

Fixes: 079cd633219d ("netfilter: nf_tables: Introduce NFT_MSG_GETSETELEM_RESET")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_tables_api.c