OSDN Git Service

system_server: allow /proc read access to other UIDs
authorNick Kralevich <nnk@google.com>
Sun, 8 Nov 2015 01:04:04 +0000 (17:04 -0800)
committerNick Kralevich <nnk@google.com>
Sun, 8 Nov 2015 01:04:04 +0000 (17:04 -0800)
Add system_server to AID_READPROC, to allow system_server to read
/proc entries associated with other UIDs.

Bug: 23310674
Change-Id: I1602b8ee30670cde4ed56e2f901524c105895352

core/java/com/android/internal/os/ZygoteInit.java

index 77f1efa..4bcfa4c 100644 (file)
@@ -519,7 +519,7 @@ public class ZygoteInit {
         String args[] = {
             "--setuid=1000",
             "--setgid=1000",
-            "--setgroups=1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1018,1021,1032,3001,3002,3003,3006,3007",
+            "--setgroups=1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1018,1021,1032,3001,3002,3003,3006,3007,3009",
             "--capabilities=" + capabilities + "," + capabilities,
             "--nice-name=system_server",
             "--runtime-args",