diff --git a/non_plat/hal_vibrator.te b/non_plat/hal_vibrator.te index 7f13029..c88619d 100644 --- a/non_plat/hal_vibrator.te +++ b/non_plat/hal_vibrator.te @@ -3,4 +3,3 @@ allow hal_vibrator sysfs_vibrator:dir r_dir_perms; allow hal_vibrator sysfs_leds:file rw_file_perms; allow hal_vibrator sysfs_leds:dir r_dir_perms; allow hal_vibrator sysfs_leds:lnk_file read; -allow hal_vibrator_default sysfs:file { open write read }; diff --git a/plat_private/file_contexts b/plat_private/file_contexts index 40de9e6..bce1d1d 100644 --- a/plat_private/file_contexts +++ b/plat_private/file_contexts @@ -44,5 +44,7 @@ #MTK vibrator /sys/devices/platform/vibrator@0/leds/vibrator(/.*)? u:object_r:sysfs_vibrator:s0 +/sys/devices/virtual/timed_output/vibrator(/.*)? u:object_r:sysfs_vibrator:s0 +/sys/devices/platform/leds-mt65xx/leds(/.*)? u:object_r:sysfs_leds:s0 /sys/block/mmcblk0rpmb/size u:object_r:access_sys_file:s0