]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: do not allow to delete table with owner by handle
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Jun 2021 10:10:49 +0000 (12:10 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Jun 2021 10:15:05 +0000 (12:15 +0200)
commitc485074ee37d5e668b0ed2dd544f5299d455de33
tree5fb44498a930a67fd7706357c70cf8828972b72a
parentdbe87e17725c21e89f925d76aea39c91cea0aaae
netfilter: nf_tables: do not allow to delete table with owner by handle

nft_table_lookup_byhandle() also needs to validate the netlink PortID
owner when deleting a table by handle.

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