summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kulczak <nathankulczak@google.com>2023-02-16 20:23:48 +0000
committerNathan Kulczak <nathankulczak@google.com>2023-02-17 01:43:43 +0000
commit79f87c62070e58f5d2be5d3d2e39a9e1dc84a250 (patch)
tree012781a831534d0ea0af0446310e9ffcb362cc76
parente88cafb27038caf01e4c31c5091b78c6c4642da9 (diff)
downloadpixel-sepolicy-79f87c62070e58f5d2be5d3d2e39a9e1dc84a250.tar.gz
vibrator: allow servicemanager access to hal_vibrator_default
Allow servicemanager to call hal_vibrator_default Bug: 266025768 Test: Ran on device in permissive mode and checked logs Change-Id: I94d1315f210b625aef064c35dc8102e847a927c6 Signed-off-by: Nathan Kulczak <nathankulczak@google.com>
-rw-r--r--vibrator/cs40l25/hal_vibrator_default.te3
-rw-r--r--vibrator/cs40l26/hal_vibrator_default.te4
2 files changed, 6 insertions, 1 deletions
diff --git a/vibrator/cs40l25/hal_vibrator_default.te b/vibrator/cs40l25/hal_vibrator_default.te
index 2dd1c65..81c2f3f 100644
--- a/vibrator/cs40l25/hal_vibrator_default.te
+++ b/vibrator/cs40l25/hal_vibrator_default.te
@@ -17,4 +17,5 @@ get_prop(hal_vibrator_default, vendor_vibrator_prop);
vndbinder_use(hal_vibrator_default);
# Allow Vibrator HAL to communicate with stats service
-allow hal_vibrator_default fwk_stats_service:service_manager find; \ No newline at end of file
+allow hal_vibrator_default fwk_stats_service:service_manager find;
+binder_use(hal_vibrator_default)
diff --git a/vibrator/cs40l26/hal_vibrator_default.te b/vibrator/cs40l26/hal_vibrator_default.te
index 478bee9..4fafe8a 100644
--- a/vibrator/cs40l26/hal_vibrator_default.te
+++ b/vibrator/cs40l26/hal_vibrator_default.te
@@ -17,3 +17,7 @@ get_prop(hal_vibrator_default, vendor_vibrator_prop);
# Allow vibrator HAL's default implementation to use vendor-binder service
vndbinder_use(hal_vibrator_default);
+
+# Allow Vibrator HAL to communicate with stats service
+allow hal_vibrator_default fwk_stats_service:service_manager find;
+binder_use(hal_vibrator_default)