]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/cgroup.c
cgroup: refuse to return accounting data if accounting isn't turned on
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Sep 2017 14:31:01 +0000 (16:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Sep 2017 13:24:55 +0000 (15:24 +0200)
commitcf3b4be101acb396fe3b9504685a970be7f86764
tree2b3b748916c0e054027e825acf7dee7a1556518d
parent58d83430e1276fe8d1224c2b5f76e756d143a375
cgroup: refuse to return accounting data if accounting isn't turned on

We used to be a bit sloppy on this, and handed out accounting data even
for units where accounting wasn't explicitly enabled. Let's be stricter
here, so that we know the accounting data is actually fully valid. This
is necessary, as the accounting data is no longer stored exclusively in
cgroupfs, but is partly maintained external of that, and flushed during
unit starts. We should hence only expose accounting data we really know
is fully current.
src/core/cgroup.c