platform_system_core/libprocessgroup
Suren Baghdasaryan 798e805715 libprocessgroup: make sure SetupCgroups is called once and only by init
SetupCgroups is called by init process during early-init stage and is not
supposed to be called again by anyone else. Ensure that the caller is the
init process, make sure cgroup.rc file is written only one time, keep the
file descriptor to cgroup.rc file open by the init process to ensure all
its further mappings stay valid even if the file is deleted.

Bug: 124774415
Test: build, run, verify no errors or warning in the logcat

Change-Id: I70ccec551fc07c380333566f618b969667dcf783
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-03-25 16:22:10 +00:00
..
include/processgroup libprocessgroup: Add support for task profiles 2019-02-03 16:48:35 +00:00
profiles libprocessgroup: Add VTS tests for vendor JSON files 2019-03-15 16:28:42 -07:00
Android.bp libprocessgroup: Add support for task profiles 2019-02-03 16:48:35 +00:00
cgroup_map.cpp libprocessgroup: make sure SetupCgroups is called once and only by init 2019-03-25 16:22:10 +00:00
cgroup_map.h Set cg_file_data_ to null when initialization failed 2019-03-08 10:18:06 -08:00
OWNERS Add OWNERS for libprocessgroup 2018-09-14 11:13:22 -07:00
processgroup.cpp Merge "Reduce log spam from libprocessgroup" 2019-03-01 22:11:15 +00:00
sched_policy.cpp Set cg_file_data_ to null when initialization failed 2019-03-08 10:18:06 -08:00
task_profiles.cpp libprocessgroup: Deliberately leak TaskProfiles and CgroupMap instances. 2019-03-21 17:00:48 +00:00
task_profiles.h Add vendor cgroups and task_profiles support 2019-03-01 00:29:37 +00:00