]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27495d940dbba71d8c726cae0d1a309ca2803b2f
treeeed207ebcc8cd4f942869d48a0f2f947f89243e2
parentc0a136783ad06e5ff68ade6f48efdebe55314f13
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: 10e0d9638f20 ("netfilter: nftables: introduce table ownership")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c