basic/cgroup-util: introduce cg_get_keyed_attribute_full()
authorMichal Sekletár <msekleta@redhat.com>
Wed, 29 Apr 2020 15:40:22 +0000 (17:40 +0200)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Tue, 23 Jun 2020 12:50:50 +0000 (14:50 +0200)
commit5aefc153b25b42a80942e5c367ce143817551870
tree1f1cd01723547243d5d786e25717a874e32f894b
parent7301b170b266225f091e95ff52b3a95ff9776d13
basic/cgroup-util: introduce cg_get_keyed_attribute_full()

Callers of cg_get_keyed_attribute_full() can now specify via the flag whether the
missing keyes in cgroup attribute file are OK or not. Also the wrappers for both
strict and graceful version are provided.

(cherry picked from commit 25a1f04c682260bb9b96e25bdf33665d6172db98)

Related: #1830861
src/basic/cgroup-util.c
src/basic/cgroup-util.h
src/test/test-cgroup-util.c