diff options
author | Tai Kuo <taikuo@google.com> | 2022-02-18 16:38:34 +0800 |
---|---|---|
committer | Tai Kuo <taikuo@google.com> | 2022-02-21 03:12:34 +0000 |
commit | eb1b28b93a8841261b26cd2c3f813cbc6fc11725 (patch) | |
tree | 9edbc3e944e7f763bed9525589e44879e244e2ff | |
parent | 79a505415651e4c313e2fc9b8e586a9e31992e03 (diff) | |
download | pixel-sepolicy-eb1b28b93a8841261b26cd2c3f813cbc6fc11725.tar.gz |
Allow cs40l26 HAL and dumpsys to access sysfs_vibrator
Bug: 204718450
Bug: 207062207
Bug: 220068252
Test: vibrator HAL init
Test: dumpsys android.hardware.vibrator.IVibrator/default
Change-Id: I3ea3418508286167d9f6f087253cc69fd82aa3a0
-rw-r--r-- | vibrator/cs40l26/hal_vibrator_default.te | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vibrator/cs40l26/hal_vibrator_default.te b/vibrator/cs40l26/hal_vibrator_default.te index 5e47136..478bee9 100644 --- a/vibrator/cs40l26/hal_vibrator_default.te +++ b/vibrator/cs40l26/hal_vibrator_default.te @@ -1,5 +1,7 @@ -allow hal_vibrator_default input_device:dir search; +allow hal_vibrator_default input_device:dir r_dir_perms; allow hal_vibrator_default input_device:chr_file rw_file_perms; +allow hal_vibrator_default sysfs_vibrator:dir search; +allow hal_vibrator_default sysfs_vibrator:file rw_file_perms; allow hal_vibrator_default audio_device:dir search; allow hal_vibrator_default proc_asound:dir search; |