netfilter: x_tables: allow to use default cgroup match
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Signed-off-by Daniel Borkmann <[email protected]>
--- net/netfilter/xt_cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/xt_cgroup.c +1 -1
@@ -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
Signature · 1 line
1.7.11.7
Quoted 10 lines · Daniel Borkmann
There's actually no good reason why we cannot use cgroup id 0, so lets just remove this artificial barrier.
Reported-by Alexey Perevalov <[email protected]>Signed-off-by Daniel Borkmann <[email protected]>--- net/netfilter/xt_cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thank you, Daniel, I tested it on my environment, patch is fine.
Tested-by Alexey Perevalov <[email protected]>
Signature · 2 lines
Best regards, Alexey Perevalov
Quoted 11 lines · Alexey Perevalov
Quoted 10 lines · Daniel Borkmann
There's actually no good reason why we cannot use cgroup id 0, so lets just remove this artificial barrier.
Reported-by Alexey Perevalov <[email protected]>Signed-off-by Daniel Borkmann <[email protected]>--- net/netfilter/xt_cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 3 lines
Thank you, Daniel, I tested it on my environment, patch is fine.
Tested-by Alexey Perevalov <[email protected]>
Applied, thanks.