[Detail] Add sysfs access rules for vibrator [Solution] Add sysfs open, read and write sepolicy rules in hal_vibrator.te MTK-Commit-Id: ed1f986144b0203c1ae7aaba37abab0395a6b2b7 Change-Id: Id7f177b9d3d467abbecb8bc82c6eea8ad20686d5 Signed-off-by: Qiangming Xia <qiangming.xia@mediatek.com> CR-Id: ALPS03719620 Feature: Sensor Hub (cherry picked from commit ecc33e156f84105aa3f4dea1c158dbc27524de56)
7 lines
279 B
Plaintext
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 };
|