From 9d706391caa816c8e8e6c721dbd4905f2c3bf4c2 Mon Sep 17 00:00:00 2001 From: HDzungx Date: Fri, 28 Apr 2023 05:02:42 +0700 Subject: [PATCH] sepolicy: address denials in TurboAdapter E SELinux : avc: denied { find } for interface=vendor.google.google_battery::IGoogleBattery sid=u:r:platform_app:s0:c512,c768 pid=2679 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:hal_turbo_adapter_hwservice:s0 tclass=hwservice_manager permissive=0 Change-Id: I46b46e5d788152c199887fef859021d3f13bf325 Signed-off-by: Anushek Prasal --- common/vendor/hwservice_contexts | 1 + common/vendor/platform_app.te | 1 + 2 files changed, 2 insertions(+) create mode 100644 common/vendor/hwservice_contexts create mode 100644 common/vendor/platform_app.te diff --git a/common/vendor/hwservice_contexts b/common/vendor/hwservice_contexts new file mode 100644 index 0000000..88a5fa2 --- /dev/null +++ b/common/vendor/hwservice_contexts @@ -0,0 +1 @@ +vendor.google.google_battery::IGoogleBattery u:object_r:hal_turbo_adapter_hwservice:s0 diff --git a/common/vendor/platform_app.te b/common/vendor/platform_app.te new file mode 100644 index 0000000..8e861e5 --- /dev/null +++ b/common/vendor/platform_app.te @@ -0,0 +1 @@ +allow platform_app hal_turbo_adapter_hwservice:hwservice_manager find;