]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:22 +0000 (13:55 +0100)
commitafb933eb8414c9771cd8cb3351806362cacfa071
treeccb0180984ca024377b5c823013acf9be4210bfc
parentb0f93a1f533047666196ef9bff69fdfb1f94eaf0
netfilter: nf_tables: allow to fetch set elements when table has an owner

[ Upstream commit bdd5c691802bafd564efe1296367a46c0d273814 ]

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: 10e0d9638f20 ("netfilter: nftables: introduce table ownership")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_tables_api.c