]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: bogus EOPNOTSUPP on basechain update
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 4 Nov 2019 13:52:41 +0000 (14:52 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 4 Nov 2019 19:58:35 +0000 (20:58 +0100)
commit95850eedccf6a49dd5cab7f02670215d7ee4ed53
treecfdd7fb6a0ad2e74af5de2edaa5afb9ca18e3944
parent4be93586aa8ddff52981997f28f0ed8fe3b7e2a9
netfilter: nf_tables: bogus EOPNOTSUPP on basechain update

Userspace never includes the NFT_BASE_CHAIN flag, this flag is inferred
from the NFTA_CHAIN_HOOK atribute. The chain update path does not allow
to update flags at this stage, the existing sanity check bogusly hits
EOPNOTSUPP in the basechain case if the offload flag is set on.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c