diff options
author | Tai Kuo <taikuo@google.com> | 2022-02-18 16:30:04 +0800 |
---|---|---|
committer | Tai Kuo <taikuo@google.com> | 2022-02-18 09:57:22 +0000 |
commit | 79a505415651e4c313e2fc9b8e586a9e31992e03 (patch) | |
tree | 7efacf34c1cd1f1f1a7ea7c7e3f719807d599904 | |
parent | 1d70c59cb8ca8c4eeab91cf4284db3f68f63ed8c (diff) | |
download | pixel-sepolicy-79a505415651e4c313e2fc9b8e586a9e31992e03.tar.gz |
Allow the cs40l26 audio coupled haptics
Bug: 199578214
Bug: 207062207
Bug: 220068252
Test: vibrator hal can access audio path
Change-Id: Ic4f433a9f6bcf2cd7dedb7e64cd41f60f25bcc65
-rw-r--r-- | vibrator/cs40l26/file_contexts | 3 | ||||
-rw-r--r-- | vibrator/cs40l26/hal_vibrator_default.te | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/vibrator/cs40l26/file_contexts b/vibrator/cs40l26/file_contexts index 13513c9..5c9f669 100644 --- a/vibrator/cs40l26/file_contexts +++ b/vibrator/cs40l26/file_contexts @@ -1,2 +1,5 @@ /vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26 u:object_r:hal_vibrator_default_exec:s0 /vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-dual u:object_r:hal_vibrator_default_exec:s0 + +/dev/snd/pcmC0D24p u:object_r:vibrator_snd_device:s0 +/dev/snd/pcmC1D24p u:object_r:vibrator_snd_device:s0 diff --git a/vibrator/cs40l26/hal_vibrator_default.te b/vibrator/cs40l26/hal_vibrator_default.te index 963a1c9..5e47136 100644 --- a/vibrator/cs40l26/hal_vibrator_default.te +++ b/vibrator/cs40l26/hal_vibrator_default.te @@ -1,6 +1,12 @@ allow hal_vibrator_default input_device:dir search; allow hal_vibrator_default input_device:chr_file rw_file_perms; +allow hal_vibrator_default audio_device:dir search; +allow hal_vibrator_default proc_asound:dir search; +allow hal_vibrator_default proc_asound:file r_file_perms; +allow hal_vibrator_default vibrator_snd_device:chr_file rw_file_perms; +allow hal_vibrator_default vibrator_snd_device:dir search; + allow hal_vibrator_default mnt_vendor_file:dir search; allow hal_vibrator_default persist_file:dir search; r_dir_file(hal_vibrator_default, persist_haptics_file) |