cgroup: memory limits on / are not supported

(cherry picked from commit 7539904965)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2015-01-15 23:44:24 -05:00
parent acb798989f
commit 27f0983b31
+1 -1
View File
@@ -382,7 +382,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];