platform_system_core/libprocessgroup
Suren Baghdasaryan 5b53573671 libprocessgroup: restrict SetupCgroups to one-time usage 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: Ib8822cf0112db7744e28d442182d54dcf06f46f2
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-03-28 01:25:22 +00:00
..
include/processgroup libprocessgroup: restrict SetupCgroups to one-time usage and only by init 2019-03-28 01:25:22 +00:00
profiles libprocessgroup: Add VTS tests for vendor JSON files 2019-03-15 16:28:42 -07:00
Android.bp libprocessgroup: add -Wexit-time-destructors. 2019-03-26 18:50:22 -07:00
cgroup_map.cpp libprocessgroup: restrict SetupCgroups to one-time usage and only by init 2019-03-28 01:25:22 +00:00
cgroup_map.h libprocessgroup: restrict SetupCgroups to one-time usage and only by init 2019-03-28 01:25:22 +00: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