1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 09:56:51 +03:00

cgroup: memory limits on / are not supported

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-01-05 19:03:08 -05:00
parent 6da139137e
commit 7539904965

View File

@ -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];