Qiangming Xia 47417ab269 [ALPS03946622] vibrator: Fix sepolicy issue
[Detail] Vibrator has no right to access sysfs

[Solution] Add sysfs rule to vibrator te file

MTK-Commit-Id: 8c598697e8ea1c72ad9753fe706ab729ac7b47d7

Change-Id: Ib90a4681121ffe4ddbb0443c220b78f42e0de722
Signed-off-by: Qiangming Xia <qiangming.xia@mediatek.com>
CR-Id: ALPS03946622
Feature: [Module]Vibrator
2020-01-18 09:56:42 +08:00

7 lines
279 B
Plaintext

# vibrator sysfs rw access
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 };