summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Ju <leiju@google.com>2024-01-01 14:00:12 -0800
committerLei Ju <leiju@google.com>2024-01-01 17:11:15 -0800
commit4f48ed0e89c4a45891378566ad4606ed6d9c432d (patch)
treed17308875f4f480482ee083fa62e61b102d2b570
parent33bda813407a757a5c1245f30f9f5616d16833a4 (diff)
downloadpixel-sepolicy-4f48ed0e89c4a45891378566ad4606ed6d9c432d.tar.gz
Update sepolicy for socket connection from vibrator hal
Bug: 248615564 Test: tested on pixel 8 pro and observed that the added policy cleared out the violation log. Change-Id: I3199c57dd444edb4de38b544b8171fd8cb955aa2
-rw-r--r--vibrator/cs40l26/hal_vibrator_default.te2
1 files changed, 2 insertions, 0 deletions
diff --git a/vibrator/cs40l26/hal_vibrator_default.te b/vibrator/cs40l26/hal_vibrator_default.te
index c61cefe..b375141 100644
--- a/vibrator/cs40l26/hal_vibrator_default.te
+++ b/vibrator/cs40l26/hal_vibrator_default.te
@@ -17,6 +17,8 @@ get_prop(hal_vibrator_default, vendor_vibrator_prop);
# Allow Vibrator HAL to communicate with daemon via socket
unix_socket_connect(hal_vibrator_default, chre, chre);
+## TODO(b/248615564): Remove above rule after CHRE multiclient HAL is launched.
+unix_socket_connect(hal_vibrator_default, chre, hal_contexthub_default)
# Allow vibrator HAL's default implementation to use vendor-binder service
vndbinder_use(hal_vibrator_default);