netfilter: nf_tables: allow to fetch set elements when table has an owner
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Feb 2023 10:34:27 +0000 (11:34 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 Feb 2023 16:34:11 +0000 (17:34 +0100)
commit92f3e96d642f5e05b9dc710c06fedc669f1b4f00
treebfdc44185f55ce85843f0baec8fc016189d90a6d
parentbbb253b206b9c417928a6c827d038e457f3012e9
netfilter: nf_tables: allow to fetch set elements when table has an owner

NFT_MSG_GETSETELEM returns -EPERM when fetching set elements that belong
to table that has an owner. This results in empty set/map listing from
userspace.

Fixes: 6001a930ce03 ("netfilter: nftables: introduce table ownership")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c