]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: skip netlink portID validation if zero
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Jun 2021 09:45:11 +0000 (11:45 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Jun 2021 10:08:04 +0000 (12:08 +0200)
commitdbe87e17725c21e89f925d76aea39c91cea0aaae
tree4a8caed4c70f7951d9c3a45b8ac6fc3d074ba9d1
parent765a14fa1c77da96d1a90e8d82251975d4ba3bc3
netfilter: nf_tables: skip netlink portID validation if zero

nft_table_lookup() allows us to obtain the table object by the name and
the family. The netlink portID validation needs to be skipped for the
dump path, since the ownership only applies to commands to update the
given table. Skip validation if the specified netlink PortID is zero
when calling nft_table_lookup().

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