提交 caa8ad94 编写于 作者: D Daniel Borkmann 提交者: Pablo Neira Ayuso

netfilter: x_tables: allow to use default cgroup match

There's actually no good reason why we cannot use cgroup id 0,
so lets just remove this artificial barrier.
Reported-by: NAlexey Perevalov <a.perevalov@samsung.com>
Signed-off-by: NDaniel Borkmann <dborkman@redhat.com>
Tested-by: NAlexey Perevalov <a.perevalov@samsung.com>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 8993cf8e
......@@ -31,7 +31,7 @@ static int cgroup_mt_check(const struct xt_mtchk_param *par)
if (info->invert & ~1)
return -EINVAL;
return info->id ? 0 : -EINVAL;
return 0;
}
static bool
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册