diff options
author | Nathan Kulczak <nathankulczak@google.com> | 2023-02-14 16:46:29 +0000 |
---|---|---|
committer | Nathan Kulczak <nathankulczak@google.com> | 2023-02-16 04:49:58 +0000 |
commit | e88cafb27038caf01e4c31c5091b78c6c4642da9 (patch) | |
tree | 28aa75c65795a70cce1e28b45ace7beba9efe5e4 | |
parent | 92818aad0052c0f9402dbce917c57ece6d020577 (diff) | |
download | pixel-sepolicy-e88cafb27038caf01e4c31c5091b78c6c4642da9.tar.gz |
vibrator: allow cs40l25 access fwk_stats_service and system_server
Update se-policy to allow vibrator cs40l25 HAL access to stats services
Error:
SELinux: avc: denied { find } for pid=1003 uid=1000 name=android.frameworks.stats.IStats/default scontext=u:r:hal_vibrator_default:s0 tcontext=u:object_r:fwk_stats_service:s0 tclass=service_manager permissive=1
Bug: 266025768
Test: Built and flashed to device
Change-Id: Ie1c7586063e6e68bed930599ad184d0591fff34d
-rw-r--r-- | vibrator/cs40l25/hal_vibrator_default.te | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vibrator/cs40l25/hal_vibrator_default.te b/vibrator/cs40l25/hal_vibrator_default.te index 219a6b1..2dd1c65 100644 --- a/vibrator/cs40l25/hal_vibrator_default.te +++ b/vibrator/cs40l25/hal_vibrator_default.te @@ -15,3 +15,6 @@ 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;
\ No newline at end of file |