diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2014-12-15 20:55:58 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-12-15 20:55:58 -0800 |
commit | a2d1473c85cf36d0e030a5d231e3921b5efb336c (patch) | |
tree | c102ed14f1b0619bcfd70299a43829e36d2fc074 | |
parent | b1d8d8e0049599c8a8f4e1961519e68e93448112 (diff) | |
parent | 7a0d84966fc783d32853343ba8e0d36c5461eb91 (diff) | |
download | android_device_qcom_sepolicy-a2d1473c85cf36d0e030a5d231e3921b5efb336c.tar.gz android_device_qcom_sepolicy-a2d1473c85cf36d0e030a5d231e3921b5efb336c.tar.bz2 android_device_qcom_sepolicy-a2d1473c85cf36d0e030a5d231e3921b5efb336c.zip |
Merge "sepolicy: Add system health monitor device contexts and rules"
-rwxr-xr-x | common/device.te | 3 | ||||
-rw-r--r-- | common/file_contexts | 1 | ||||
-rw-r--r-- | test/qmi_test_service.te | 3 |
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; ') |