From bbe55d54c638419e0d6c8c6218e31655d59cbee2 Mon Sep 17 00:00:00 2001 From: basamaryan Date: Mon, 22 Apr 2024 21:00:20 +0200 Subject: [PATCH] miuicamera: Address {camerapostproc_xiaomi,misys} denials Change-Id: I6827573ecbe7958110dcb77793e23a8b3def6f80 --- sepolicy/vendor/hwservice_contexts | 2 ++ sepolicy/vendor/platform_app.te | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 sepolicy/vendor/hwservice_contexts create mode 100644 sepolicy/vendor/platform_app.te diff --git a/sepolicy/vendor/hwservice_contexts b/sepolicy/vendor/hwservice_contexts new file mode 100644 index 0000000..206ba3f --- /dev/null +++ b/sepolicy/vendor/hwservice_contexts @@ -0,0 +1,2 @@ +vendor.xiaomi.hardware.campostproc::IMiPostProcService u:object_r:hal_camerapostproc_xiaomi_hwservice:s0 +vendor.xiaomi.hardware.misys::IMiSys u:object_r:hal_misys_hwservice:s0 diff --git a/sepolicy/vendor/platform_app.te b/sepolicy/vendor/platform_app.te new file mode 100644 index 0000000..ee01b69 --- /dev/null +++ b/sepolicy/vendor/platform_app.te @@ -0,0 +1,5 @@ +type hal_camerapostproc_xiaomi_hwservice, hwservice_manager_type; +type hal_misys_hwservice, hwservice_manager_type; + +allow platform_app hal_camerapostproc_xiaomi_hwservice:hwservice_manager find; +allow platform_app hal_misys_hwservice:hwservice_manager find;