chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Tue, 21 Nov 2017 06:14:23 +0000 (07:14 +0100)
commitee0cefd5da6939c406f0d421d6115fac4dd78535
treebe0a55a7324a01996f3ecd236dc081cd1251821d
parente5ff123fa4c23ed39685f8f8dc7f77f1627a81fd
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