summaryrefslogtreecommitdiff
path: root/libutils/Mutex_test.cpp
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2019-03-26 20:34:32 +0000
committerSuren Baghdasaryan <surenb@google.com>2019-03-28 01:25:22 +0000
commit5b5357367163a6238c45c020c9e5ff0dbaa31f59 (patch)
tree748900a5bbdd1b926b2aeea326430d018882e80c /libutils/Mutex_test.cpp
parent7f43e9fa40d5440f77a9a0b46edaad9d1b69bd8a (diff)
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>
Diffstat (limited to 'libutils/Mutex_test.cpp')
0 files changed, 0 insertions, 0 deletions