summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcommon/device.te3
-rw-r--r--common/file_contexts1
-rw-r--r--test/qmi_test_service.te3
3 files changed, 7 insertions, 0 deletions
diff --git a/common/device.te b/common/device.te
index a4ec98cf..081b8adc 100755
--- a/common/device.te
+++ b/common/device.te
@@ -88,3 +88,6 @@ type hbtp_device, dev_type;
#added for voice device
type voice_device, dev_type;
+
+#Define system health monitor devices
+type system_health_monitor_device, dev_type;
diff --git a/common/file_contexts b/common/file_contexts
index 6e021120..55f9a51e 100644
--- a/common/file_contexts
+++ b/common/file_contexts
@@ -59,6 +59,7 @@
/dev/coresight-tmc-etf u:object_r:qdss_device:s0
/dev/coresight-tmc-etr u:object_r:qdss_device:s0
/dev/coresight-tmc-etr-stream u:object_r:qdss_device:s0
+/dev/system_health_monitor u:object_r:system_health_monitor_device:s0
###################################
# Dev socket nodes
diff --git a/test/qmi_test_service.te b/test/qmi_test_service.te
index ed97c2ec..11ada33b 100644
--- a/test/qmi_test_service.te
+++ b/test/qmi_test_service.te
@@ -20,4 +20,7 @@ userdebug_or_eng(`
allow qmi_test_service qmi_test_service:capability {dac_override dac_read_search setgid setuid fsetid};
#QCCI calls qmuxd API. The API will internally require this
qmux_socket(qmi_test_service);
+ #enable accessing the system health monitor to check the system health,
+ #if a request times out
+ allow qmi_test_service system_health_monitor_device:chr_file rw_file_perms;
')