From ad74ced2e674f0b8c055484d80dd0a9017a93c16 Mon Sep 17 00:00:00 2001 From: xyyx Date: Sun, 14 Feb 2021 13:01:09 +0100 Subject: [PATCH] kunlun2: Address FM Radio denials --- sepolicy/private/fm_app.te | 2 ++ sepolicy/private/hal_bluetooth.te | 1 + sepolicy/private/hwservice.te | 1 + sepolicy/private/hwservice_contexts | 1 + 4 files changed, 5 insertions(+) create mode 100644 sepolicy/private/fm_app.te create mode 100644 sepolicy/private/hal_bluetooth.te diff --git a/sepolicy/private/fm_app.te b/sepolicy/private/fm_app.te new file mode 100644 index 0000000..583c24c --- /dev/null +++ b/sepolicy/private/fm_app.te @@ -0,0 +1,2 @@ +allow vendor_fm_app hal_fm_hwservice:hwservice_manager find; +allow vendor_fm_app hal_bluetooth:binder { call transfer }; diff --git a/sepolicy/private/hal_bluetooth.te b/sepolicy/private/hal_bluetooth.te new file mode 100644 index 0000000..248f0e4 --- /dev/null +++ b/sepolicy/private/hal_bluetooth.te @@ -0,0 +1 @@ +allow hal_bluetooth vendor_fm_app:binder call; diff --git a/sepolicy/private/hwservice.te b/sepolicy/private/hwservice.te index 17ca6fc..9842fa0 100644 --- a/sepolicy/private/hwservice.te +++ b/sepolicy/private/hwservice.te @@ -1 +1,2 @@ type hal_display_color_hwservice, hwservice_manager_type; +type hal_fm_hwservice, hwservice_manager_type; diff --git a/sepolicy/private/hwservice_contexts b/sepolicy/private/hwservice_contexts index 8e793b3..befffac 100644 --- a/sepolicy/private/hwservice_contexts +++ b/sepolicy/private/hwservice_contexts @@ -1 +1,2 @@ vendor.display.color::IDisplayColor u:object_r:hal_display_color_hwservice:s0 +vendor.qti.hardware.fm::IFmHci u:object_r:hal_fm_hwservice:s0