mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
netfilter: nft_tunnel: restrict it to netdev family
[ Upstream commit01e4092d53
] Only allow to use this expression from NFPROTO_NETDEV family. Fixes:af308b94a2
("netfilter: nf_tables: add tunnel support") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
fba05d2502
commit
dbd0f1991a
1 changed files with 1 additions and 0 deletions
|
@ -134,6 +134,7 @@ static const struct nft_expr_ops nft_tunnel_get_ops = {
|
||||||
|
|
||||||
static struct nft_expr_type nft_tunnel_type __read_mostly = {
|
static struct nft_expr_type nft_tunnel_type __read_mostly = {
|
||||||
.name = "tunnel",
|
.name = "tunnel",
|
||||||
|
.family = NFPROTO_NETDEV,
|
||||||
.ops = &nft_tunnel_get_ops,
|
.ops = &nft_tunnel_get_ops,
|
||||||
.policy = nft_tunnel_policy,
|
.policy = nft_tunnel_policy,
|
||||||
.maxattr = NFTA_TUNNEL_MAX,
|
.maxattr = NFTA_TUNNEL_MAX,
|
||||||
|
|
Loading…
Reference in a new issue