aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <[email protected]>2020-12-27 11:33:44 +0000
committerPablo Neira Ayuso <[email protected]>2020-12-28 09:50:16 +0000
commit95cd4bca7b1f4a25810f3ddfc5e767fb46931789 (patch)
tree6e75cae1db8cc0fd96b2914c661f92939bc83d22 /net/switchdev/switchdev.c
parentnetfilter: xt_RATEEST: reject non-null terminated string from userspace (diff)
downloadkernel-95cd4bca7b1f4a25810f3ddfc5e767fb46931789.tar.gz
kernel-95cd4bca7b1f4a25810f3ddfc5e767fb46931789.zip
netfilter: nft_dynset: report EOPNOTSUPP on missing set feature
If userspace requests a feature which is not available the original set definition, then bail out with EOPNOTSUPP. If userspace sends unsupported dynset flags (new feature not supported by this kernel), then report EOPNOTSUPP to userspace. EINVAL should be only used to report malformed netlink messages from userspace. Fixes: 22fe54d5fefc ("netfilter: nf_tables: add support for dynamic set updates") Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions