platform_system_core/libprocessgroup
Martijn Coenen 623b56af5d Fix libprocessgroup SELinux denials.
libprocessgroup checks whether it can use memory
cgroups for keeping track of forked processes by
seeing whether /dev/memcg/apps is writable. However,
on systems with memory cgroups disabled, SELinux
(correctly) no longer classifies this directory as a cgroup,
and starts denying zygote access. To fix this,
first check whether /dev/memcg/apps/tasks exists to
see if the cgroup is mounted; only then check whether
we can write to the directory.

Bug: 27046965
Change-Id: I6e44cd62d8c396e20ceb162c50606b3e86f2cb3e
2016-02-08 11:45:27 +01:00
..
include/processgroup Add libprocessgroup 2014-07-09 17:24:39 -07:00
Android.mk Reuse mem cgroups for tracking forked PIDs. 2016-02-01 21:04:24 +01:00
processgroup.cpp Fix libprocessgroup SELinux denials. 2016-02-08 11:45:27 +01:00