projects
/
wrapfs-3.14.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f25d22
)
netfilter: nft_tunnel: add missing attribute validation for tunnels
author
Jakub Kicinski
<kuba@kernel.org>
Tue, 3 Mar 2020 05:08:33 +0000
(21:08 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:19:18 +0000
(07:19 +0100)
commit
88a637719a1570705c02cacb3297af164b1714e7
upstream.
Add missing attribute validation for tunnel source and
destination ports to the netlink policy.
Fixes: af308b94a2a4 ("netfilter: nf_tables: add tunnel support")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nft_tunnel.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nft_tunnel.c
b/net/netfilter/nft_tunnel.c
index 037e8fce9b30e4a90b854068d0b800fefb3d0f59..1effd4878619f457d01a7e2007dce0e93d8c7c48 100644
(file)
--- a/
net/netfilter/nft_tunnel.c
+++ b/
net/netfilter/nft_tunnel.c
@@
-339,6
+339,8
@@
static const struct nla_policy nft_tunnel_key_policy[NFTA_TUNNEL_KEY_MAX + 1] =
[NFTA_TUNNEL_KEY_FLAGS] = { .type = NLA_U32, },
[NFTA_TUNNEL_KEY_TOS] = { .type = NLA_U8, },
[NFTA_TUNNEL_KEY_TTL] = { .type = NLA_U8, },
+ [NFTA_TUNNEL_KEY_SPORT] = { .type = NLA_U16, },
+ [NFTA_TUNNEL_KEY_DPORT] = { .type = NLA_U16, },
[NFTA_TUNNEL_KEY_OPTS] = { .type = NLA_NESTED, },
};