summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2019-11-05 06:49:25 +0000
committerJohn Stultz <john.stultz@linaro.org>2019-11-05 06:49:25 +0000
commit8538fcdc2ace90ea8762a968d5ce43b599dd82c6 (patch)
tree270d87f36805fd6380012977b9b91c88394261fb
parentd88f2a05d49c08f507da29506073150a09b7f668 (diff)
downloadhikey-8538fcdc2ace90ea8762a968d5ce43b599dd82c6.tar.gz
hikey/hikey960: Add hal_health_default.te spolicy
The new Battery health HAL requires access to sysfs to get details on the battery, without which we end up quickly going into suspend after boot. Change-Id: Ibb7fbb4a0d8885a17126f1e2028bfb70b92a1ee1 Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r--sepolicy/hal_health_default.te2
1 files changed, 2 insertions, 0 deletions
diff --git a/sepolicy/hal_health_default.te b/sepolicy/hal_health_default.te
new file mode 100644
index 00000000..182c6554
--- /dev/null
+++ b/sepolicy/hal_health_default.te
@@ -0,0 +1,2 @@
+#============= hal_health_default ==============
+allow hal_health_default sysfs:file {open read};