소스 검색

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: 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>
Daniel Borkmann 11 년 전
부모
커밋
caa8ad94ed
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      net/netfilter/xt_cgroup.c

+ 1 - 1
net/netfilter/xt_cgroup.c

@@ -31,7 +31,7 @@ static int cgroup_mt_check(const struct xt_mtchk_param *par)
 	if (info->invert & ~1)
 	if (info->invert & ~1)
 		return -EINVAL;
 		return -EINVAL;
 
 
-	return info->id ? 0 : -EINVAL;
+	return 0;
 }
 }
 
 
 static bool
 static bool