netfilter: nftables: disallow updates on table ownership
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 27 Feb 2021 21:31:27 +0000 (22:31 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 2 Mar 2021 15:37:22 +0000 (16:37 +0100)
commit9cc0001a18b4e5f46ec481201c88ae16f0a69bb0
treeeed207ebcc8cd4f942869d48a0f2f947f89243e2
parent8e24edddad152b998b37a7f583175137ed2e04a5
netfilter: nftables: disallow updates on table ownership

Disallow updating the ownership bit on an existing table: Do not allow
to grab ownership on an existing table. Do not allow to drop ownership
on an existing table.

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