diff options
author | Karthikeyan Ramasubramanian <kramasub@codeaurora.org> | 2014-07-17 12:08:50 -0600 |
---|---|---|
committer | Karthikeyan Ramasubramanian <kramasub@codeaurora.org> | 2014-12-12 11:17:56 -0700 |
commit | 7a0d84966fc783d32853343ba8e0d36c5461eb91 (patch) | |
tree | 1eb381429e9b63f671c753d7ffadc8c24bf370ee | |
parent | e2fbc9047706ee6546aa1d1ef223d02c189e9b31 (diff) | |
download | android_device_qcom_sepolicy-7a0d84966fc783d32853343ba8e0d36c5461eb91.tar.gz android_device_qcom_sepolicy-7a0d84966fc783d32853343ba8e0d36c5461eb91.tar.bz2 android_device_qcom_sepolicy-7a0d84966fc783d32853343ba8e0d36c5461eb91.zip |
sepolicy: Add system health monitor device contexts and rules
Add the context for the system health monitor device and add rules to
allow the qmi_test_service_tests to access the system health monitor
device.
CRs-Fixed: 770415
Change-Id: I741bb2fca9df6e09e048ed2b3b9445dd7dbe395e
-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; ') |