projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8993cf8
)
netfilter: x_tables: allow to use default cgroup match
author
Daniel Borkmann
<dborkman@redhat.com>
Mon, 18 Aug 2014 13:46:28 +0000
(15:46 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Tue, 19 Aug 2014 19:38:55 +0000
(21:38 +0200)
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>
net/netfilter/xt_cgroup.c
patch
|
blob
|
history
diff --git
a/net/netfilter/xt_cgroup.c
b/net/netfilter/xt_cgroup.c
index
f4e8330
..
7198d66
100644
(file)
--- a/
net/netfilter/xt_cgroup.c
+++ b/
net/netfilter/xt_cgroup.c
@@
-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