platform_system_core/libprocessgroup/setup
Bart Van Assche 1ec6ec4f57 libprocessgroup: Rework SetupCgroup()
Improve the readability of this function by splitting it.

This CL includes the following behavior changes:
- If changing the directory owner and/or mode fails for /sys/fs/cgroup,
  this is considered as a fatal error instead of something that should
  only fail if "Optional" has not been set.
- If mounting the v2 cgroup controller fails, this is considered as an
  error.
- Activating/mounting a cgroup controller only fails if the controller
  has not been marked as optional.

Bug: 213617178
Change-Id: If6908dfdbcb2e1c9637ab4ac8a7625f0a17dc9e0
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2023-02-10 14:18:38 -08:00
..
include/processgroup CgroupSetupCgroups -> CgroupSetup 2019-04-02 22:31:57 -07:00
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
cgroup_descriptor.h libprocessgroup: support for cgroup v2 hierarchy 2020-06-10 09:14:00 -07:00
cgroup_map_write.cpp libprocessgroup: Rework SetupCgroup() 2023-02-10 14:18:38 -08:00