summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2010-12-10 14:10:16 -0800
committerNick Kralevich <nnk@google.com>2010-12-15 11:09:21 -0800
commit333f24bfbd9eea1347f20c2e88c5c1565b84aafe (patch)
tree8f8aa09634a26e0d74e97ab6da827ffac60e5eaa /rootdir
parentee878753f915a0176ea411b71bdffde064e24ae0 (diff)
downloadsystem_core-333f24bfbd9eea1347f20c2e88c5c1565b84aafe.zip
system_core-333f24bfbd9eea1347f20c2e88c5c1565b84aafe.tar.gz
system_core-333f24bfbd9eea1347f20c2e88c5c1565b84aafe.tar.bz2
don't run services with gid=0
Ensure that we drop privileges for servicemanager and drmioserver. These should not be running with gid=0. Bug: 3275526 Testing: Applied change and successfully rebooted the device. No obvious bugs. Change-Id: I782fbda812cb88e0a365788b45b3b32894623177
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 8753617..d252d71 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -305,6 +305,7 @@ on property:persist.service.adb.enable=0
service servicemanager /system/bin/servicemanager
user system
+ group system
critical
onrestart restart zygote
onrestart restart media
@@ -338,6 +339,7 @@ service drm /system/bin/drmserver
service drmio /system/bin/drmioserver
user drmio
+ group drmio
service media /system/bin/mediaserver
user media