diff options
author | Nick Kralevich <nnk@google.com> | 2016-11-02 13:35:12 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2016-11-02 13:48:32 -0700 |
commit | c21169c59f5f7571ab38cc5a2c29ff3e69bee54d (patch) | |
tree | 07f4ad9f5ce961de393def916d4aa80569aa5f27 /rootdir/init.zygote32_64.rc | |
parent | c54c533cf6c2951d77a2d725902963008008a129 (diff) | |
download | core-c21169c59f5f7571ab38cc5a2c29ff3e69bee54d.tar.gz core-c21169c59f5f7571ab38cc5a2c29ff3e69bee54d.tar.bz2 core-c21169c59f5f7571ab38cc5a2c29ff3e69bee54d.zip |
give zygote AID_READPROC
In zygote wrapping mode, ZygoteConnection does a check to see if the pid
reported by the wrapped process is either child process that was
forked, or a decendent of it. This requires read access to other
processes /proc files. Grant zygote AID_READPROC to allow this access.
Bug: 32610632
Test: manual inspection of /proc files to verify group.
Test: manual inspection of zygote's children to make sure they do not
inherit AID_READPROC
Change-Id: I3619a9ae33c8077e068e8024f7c7d44cfca6fb76
Diffstat (limited to 'rootdir/init.zygote32_64.rc')
-rw-r--r-- | rootdir/init.zygote32_64.rc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rootdir/init.zygote32_64.rc b/rootdir/init.zygote32_64.rc index 3bfa0af93..1bbb00778 100644 --- a/rootdir/init.zygote32_64.rc +++ b/rootdir/init.zygote32_64.rc @@ -1,6 +1,8 @@ service zygote /system/bin/app_process32 -Xzygote /system/bin --zygote --start-system-server --socket-name=zygote class main priority -20 + user root + group root readproc socket zygote stream 660 root system onrestart write /sys/android_power/request_state wake onrestart write /sys/power/state on @@ -13,6 +15,8 @@ service zygote /system/bin/app_process32 -Xzygote /system/bin --zygote --start-s service zygote_secondary /system/bin/app_process64 -Xzygote /system/bin --zygote --socket-name=zygote_secondary class main priority -20 + user root + group root readproc socket zygote_secondary stream 660 root system onrestart restart zygote writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks |