summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmds/dumpstate/dumpstate.c2
-rw-r--r--cmds/servicemanager/servicemanager.rc2
-rw-r--r--services/surfaceflinger/surfaceflinger.rc2
3 files changed, 3 insertions, 3 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 0a393fd91..bbce3c2ac 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -694,7 +694,7 @@ int main(int argc, char *argv[]) {
694 694
695 /* switch to non-root user and group */ 695 /* switch to non-root user and group */
696 gid_t groups[] = { AID_LOG, AID_SDCARD_R, AID_SDCARD_RW, 696 gid_t groups[] = { AID_LOG, AID_SDCARD_R, AID_SDCARD_RW,
697 AID_MOUNT, AID_INET, AID_NET_BW_STATS }; 697 AID_MOUNT, AID_INET, AID_NET_BW_STATS, AID_READPROC };
698 if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) { 698 if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) {
699 ALOGE("Unable to setgroups, aborting: %s\n", strerror(errno)); 699 ALOGE("Unable to setgroups, aborting: %s\n", strerror(errno));
700 return -1; 700 return -1;
diff --git a/cmds/servicemanager/servicemanager.rc b/cmds/servicemanager/servicemanager.rc
index e73516dbb..b70fda7ee 100644
--- a/cmds/servicemanager/servicemanager.rc
+++ b/cmds/servicemanager/servicemanager.rc
@@ -1,7 +1,7 @@
1service servicemanager /system/bin/servicemanager 1service servicemanager /system/bin/servicemanager
2 class core 2 class core
3 user system 3 user system
4 group system 4 group system readproc
5 critical 5 critical
6 onrestart restart healthd 6 onrestart restart healthd
7 onrestart restart zygote 7 onrestart restart zygote
diff --git a/services/surfaceflinger/surfaceflinger.rc b/services/surfaceflinger/surfaceflinger.rc
index 59a43e219..eb9bd25a6 100644
--- a/services/surfaceflinger/surfaceflinger.rc
+++ b/services/surfaceflinger/surfaceflinger.rc
@@ -1,6 +1,6 @@
1service surfaceflinger /system/bin/surfaceflinger 1service surfaceflinger /system/bin/surfaceflinger
2 class core 2 class core
3 user system 3 user system
4 group graphics drmrpc 4 group graphics drmrpc readproc
5 onrestart restart zygote 5 onrestart restart zygote
6 writepid /dev/cpuset/system-background/tasks 6 writepid /dev/cpuset/system-background/tasks