]> 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)
commit52b0acba5a8c7c3ce4b7e5230a25814b96d76689
tree5fb44498a930a67fd7706357c70cf8828972b72a
parent144758be9f6d39128e6a44a532e389386d796b87
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: 91d14e52feec ("netfilter: nftables: introduce table ownership")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c