summaryrefslogtreecommitdiff
path: root/init/do_mounts_md.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-07-13 23:59:21 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-07-16 13:17:02 +0200
commitb717273ddb66a0c576d8c9884a6cfa70a5f49f6b (patch)
treebeae4de4095ac99f4add679f32e69bb3a130249a /init/do_mounts_md.c
parent959b69ef57db00cb33e9c4777400ae7183ebddd3 (diff)
downloadlinux-next-b717273ddb66a0c576d8c9884a6cfa70a5f49f6b.tar.gz
netfilter: nf_tables: don't fail when updating base chain policy
The following nftables test case fails on nf-next: tests/shell/run-tests.sh tests/shell/testcases/transactions/0011chain_0 The test case contains: add chain x y { type filter hook input priority 0; } add chain x y { policy drop; }" The new test if (chain->flags ^ flags) return -EOPNOTSUPP; triggers here, because chain->flags has NFT_BASE_CHAIN set, but flags is 0 because no flag attribute was present in the policy update. Just fetch the current flag settings of a pre-existing chain in case userspace did not provide any. Fixes: c9626a2cbdb20 ("netfilter: nf_tables: add hardware offload support") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'init/do_mounts_md.c')
0 files changed, 0 insertions, 0 deletions