aboutsummaryrefslogtreecommitdiffstats
path: root/rootdir/init.rc
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-01-27 13:06:53 -0800
committerNick Kralevich <nnk@google.com>2012-01-27 13:06:53 -0800
commite7fd911fd42b1f8bea6a004e2bcc1d2dda4ec718 (patch)
treec3453665a18a4de328e584202877332a153c02e8 /rootdir/init.rc
parent46f86f11d446a650602057f8a07eba1f609d7fe9 (diff)
downloadsystem_core-e7fd911fd42b1f8bea6a004e2bcc1d2dda4ec718.tar.gz
system_core-e7fd911fd42b1f8bea6a004e2bcc1d2dda4ec718.tar.bz2
system_core-e7fd911fd42b1f8bea6a004e2bcc1d2dda4ec718.zip
Restrict zygote to system user.
CVE-2011-3918: Address denial of service attack against Android's zygote process. This change enforces that only UID=system can directly connect to zygote to spawn processes. Change-Id: I89f5f05fa44ba8582920b66854df3e79527ae067
Diffstat (limited to 'rootdir/init.rc')
-rw-r--r--rootdir/init.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index b9f111e2..72995136 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -417,7 +417,7 @@ service surfaceflinger /system/bin/surfaceflinger
service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
class main
- socket zygote stream 666
+ socket zygote stream 660 root system
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart media