mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
cgroup: memory limits on / are not supported
(cherry picked from commit 7539904965)
This commit is contained in:
+1
-1
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user