netfilter: x_tables: allow to use default cgroup match

commit caa8ad94ed upstream.

There's actually no good reason why we cannot use cgroup id 0,
so lets just remove this artificial barrier.

Reported-by: Alexey Perevalov <a.perevalov@samsung.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Tested-by: Alexey Perevalov <a.perevalov@samsung.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Daniel Borkmann 2014-08-18 15:46:28 +02:00 committed by Greg Kroah-Hartman
parent e19c985650
commit fcfebe9bc6
1 changed files with 1 additions and 1 deletions

View File

@ -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