projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
530f4bb
)
netfilter: nft_tunnel: restrict it to netdev family
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Sun, 21 Aug 2022 14:32:44 +0000
(16:32 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 15:16:41 +0000
(17:16 +0200)
[ Upstream commit
01e4092d53bc4fe122a6e4b6d664adbd57528ca3
]
Only allow to use this expression from NFPROTO_NETDEV family.
Fixes: af308b94a2a4 ("netfilter: nf_tables: add tunnel support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_tunnel.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nft_tunnel.c
b/net/netfilter/nft_tunnel.c
index 3b27926d5382c3247911eb08bef4eb59ee826048..2ee50996da8cc7d79187aa7bda0933abff5d056f 100644
(file)
--- a/
net/netfilter/nft_tunnel.c
+++ b/
net/netfilter/nft_tunnel.c
@@
-133,6
+133,7
@@
static const struct nft_expr_ops nft_tunnel_get_ops = {
static struct nft_expr_type nft_tunnel_type __read_mostly = {
.name = "tunnel",
+ .family = NFPROTO_NETDEV,
.ops = &nft_tunnel_get_ops,
.policy = nft_tunnel_policy,
.maxattr = NFTA_TUNNEL_MAX,