core: don't try to write CPU quota and memory limit cgroup attrs on root cgroup
authorLennart Poettering <lennart@poettering.net>
Fri, 30 Nov 2018 17:45:22 +0000 (18:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 1 Dec 2018 11:57:51 +0000 (12:57 +0100)
commitbe2c03278166b970312f8ea3f95aa7810b8cfab5
treeb03cf0ef2655706e2cfc0f57e13cc7b81d18eb30
parent09e5c07fbd23d098edf2e0b51fbf402f07474dae
core: don't try to write CPU quota and memory limit cgroup attrs on root cgroup

In the kernel sources attempts to write to either are refused with
EINVAL. Not sure why these attributes are exported anyway on cgroupsv1,
but this means we really should ignore them altogether.

This simplifies our code as this means cgroupsv1 is more alike cgroupsv2
in this regard.

Fixes: #10969
src/core/cgroup.c