diff options
author | Tai Kuo <taikuo@google.com> | 2022-02-18 16:38:34 +0800 |
---|---|---|
committer | Tai Kuo <taikuo@google.com> | 2022-02-21 11:03:41 +0800 |
commit | d95565f08c01e7df4e359371e7ca79d05ff6859b (patch) | |
tree | e66c7f6250a0f2522d4a2fa34e14648b9c160cca | |
parent | c6796f7b3a61141bc159e50c60da0784a58a13a7 (diff) | |
download | pixel-sepolicy-d95565f08c01e7df4e359371e7ca79d05ff6859b.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; |