From 1f7acea04de864f399f5582bcdfef0982401ecb8 Mon Sep 17 00:00:00 2001 From: Chao Chen Date: Wed, 17 Feb 2016 09:44:07 -0800 Subject: healthd : allow healthd to read RTC/alarm devices * Charger mode support for off mode alarms require healthd to read RTC/alarm devices. REF: CYNGNOS-2073 Change-Id: I5c66699998d17def63a2e1f8981f088448cc8aa6 (cherry picked from commit 4a7160147a688dc71cef729399636163a33a1b8e) --- common/healthd.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/healthd.te b/common/healthd.te index 3f7f25b0..3212afa4 100644 --- a/common/healthd.te +++ b/common/healthd.te @@ -1,3 +1,5 @@ r_dir_file(healthd, sysfs_battery_supply) r_dir_file(healthd, sysfs_usb_supply) r_dir_file(healthd, sysfs_thermal); +allow healthd alarm_device:chr_file rw_file_perms; +allow healthd rtc_device:chr_file r_file_perms; -- cgit v1.2.3