summaryrefslogtreecommitdiff
path: root/net/netfilter/nft_objref.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2023-04-25 17:50:32 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2023-05-03 09:24:31 +0300
commit8509f62b0b07ae8d6dec5aa9613ab1b250ff632f (patch)
treef369ac1aad76775b20be4227a646fe9e0d8b4999 /net/netfilter/nft_objref.c
parentc6d96df9fa2c1d19525239d4262889cce594ce6c (diff)
downloadlinux-8509f62b0b07ae8d6dec5aa9613ab1b250ff632f.tar.xz
netfilter: nf_tables: hit ENOENT on unexisting chain/flowtable update with missing attributes
If user does not specify hook number and priority, then assume this is a chain/flowtable update. Therefore, report ENOENT which provides a better hint than EINVAL. Set on extended netlink error report to refer to the chain name. Fixes: 5b6743fb2c2a ("netfilter: nf_tables: skip flowtable hooknum and priority on device updates") Fixes: 5efe72698a97 ("netfilter: nf_tables: support for adding new devices to an existing netdev chain") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_objref.c')
0 files changed, 0 insertions, 0 deletions