Use GID "wakelock" to control access to kernel wakelock
Bug: 25864142
Change-Id: I97628282a23cb7fe0936c69f3a67a81c2afed60c
diff --git a/init.hammerhead.rc b/init.hammerhead.rc
index e625020..07f1ff8 100644
--- a/init.hammerhead.rc
+++ b/init.hammerhead.rc
@@ -274,7 +274,7 @@
service rmt_storage /system/bin/rmt_storage
class core
user root
- group system
+ group system wakelock
service bridgemgrd /system/bin/bridgemgrd
class main
@@ -285,7 +285,7 @@
service qmuxd /system/bin/qmuxd
class main
user radio
- group radio audio bluetooth gps
+ group radio audio bluetooth wakelock gps
service netmgrd /system/bin/netmgrd
class main
@@ -295,7 +295,7 @@
service sensors /system/bin/sensors.qcom
class main
user root
- group root
+ group root wakelock
service irsc_util /system/bin/irsc_util "/etc/sec_config"
class main