From b951e7330db0733884ab9d51e363a7f44bbd2fc6 Mon Sep 17 00:00:00 2001 From: sqian Date: Thu, 29 Mar 2018 13:59:00 -0700 Subject: [PATCH] Add sepolicy for radio sap 1.2 Bug: 74114758 Test: Checked radio-service and sap-service is on the lshal after running the service Change-Id: I1b18711286e000a7d17664e7d3a2045aeeb8c285 Merged-In: I1b18711286e000a7d17664e7d3a2045aeeb8c285 (cherry picked from commit 64839e874b1ab4c94f2287827b9ac6bb351c27e2) --- vendor/file_contexts | 2 ++ vendor/hal_radio_default.te | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 vendor/hal_radio_default.te diff --git a/vendor/file_contexts b/vendor/file_contexts index cdaf6953f..90de40b5b 100644 --- a/vendor/file_contexts +++ b/vendor/file_contexts @@ -31,6 +31,8 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.media\.omx@1\.0-service u:object_r:mediacodec_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.power@1\.0-service u:object_r:hal_power_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.radio\.config@1\.0-service u:object_r:hal_radio_config_default_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.radio@1\.2-radio-service u:object_r:hal_radio_default_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.radio@1\.2-sap-service u:object_r:hal_radio_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@1\.0-service u:object_r:hal_sensors_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.secure_element@1\.0-service u:object_r:hal_secure_element_default_exec:s0 /(vendor|system/vendor)/bin/hw/rild u:object_r:rild_exec:s0 diff --git a/vendor/hal_radio_default.te b/vendor/hal_radio_default.te new file mode 100644 index 000000000..82fd40e94 --- /dev/null +++ b/vendor/hal_radio_default.te @@ -0,0 +1,6 @@ +type hal_radio_default, domain; +hal_server_domain(hal_radio_default, hal_telephony) + +type hal_radio_default_exec, exec_type, vendor_file_type, file_type; +init_daemon_domain(hal_radio_default) +