提交 01e4092d 编写于 作者: P Pablo Neira Ayuso

netfilter: nft_tunnel: restrict it to netdev family

Only allow to use this expression from NFPROTO_NETDEV family.

Fixes: af308b94 ("netfilter: nf_tables: add tunnel support")
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 5f3b7aae
...@@ -161,6 +161,7 @@ static const struct nft_expr_ops nft_tunnel_get_ops = { ...@@ -161,6 +161,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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册