summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
authorFelix <google@ix5.org>2019-01-04 02:24:41 +0100
committerFelix <google@ix5.org>2019-01-04 02:24:41 +0100
commitfb55955462ac90023c88c24de090937342b28d52 (patch)
tree7c14754eaea83e8fa15d1a7635118b682a0a94a0 /healthd
parent1476931e02877a99ae3e87274afcf4525ff2c5e6 (diff)
downloadsystem_core-fb55955462ac90023c88c24de090937342b28d52.tar.gz
system_core-fb55955462ac90023c88c24de090937342b28d52.tar.bz2
system_core-fb55955462ac90023c88c24de090937342b28d52.zip
health: Add CAP_WAKE_ALARM to service via init
platform/interfaces/health/2.0/default/healthd_common.cpp wants to use timerfd_create() to register a wakealarm. To use the timerfd_create() syscall with CLOCK_BOOTTIME_ALARM, CAP_WAKE_ALARM is needed. Since the .rc file for android.hardware.health@2.0 is shipped here in system/core, update it here. Signed-off-by: Felix <google@ix5.org> Change-Id: I6cd5701b6e5cac37eb021d894251a3a9dc590b95
Diffstat (limited to 'healthd')
-rw-r--r--healthd/android.hardware.health@2.0-service.rc1
1 files changed, 1 insertions, 0 deletions
diff --git a/healthd/android.hardware.health@2.0-service.rc b/healthd/android.hardware.health@2.0-service.rc
index dca0ccc0e..6960c5d38 100644
--- a/healthd/android.hardware.health@2.0-service.rc
+++ b/healthd/android.hardware.health@2.0-service.rc
@@ -2,4 +2,5 @@ service health-hal-2-0 /vendor/bin/hw/android.hardware.health@2.0-service
class hal
user system
group system
+ capabilities WAKE_ALARM
file /dev/kmsg w