summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-05 19:03:08 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-05 19:04:10 -0500
commit75399049653f2d5e22032da70cf96f20d7b4d9a6 (patch)
tree604be783ac55c2392cb3fa08ff037e50ccc68cd0 /src/core
parent6da139137eb4b0ee68ca4aa4ddfdab02e8a5cf98 (diff)
cgroup: memory limits on / are not supported
Diffstat (limited to 'src/core')
-rw-r--r--src/core/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index d6156c3924..97f656eb5d 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -380,7 +380,7 @@ void cgroup_context_apply(CGroupContext *c, CGroupControllerMask mask, const cha
}
}
- if (mask & CGROUP_MEMORY) {
+ if ((mask & CGROUP_MEMORY) & !is_root) {
if (c->memory_limit != (uint64_t) -1) {
char buf[DECIMAL_STR_MAX(uint64_t) + 1];