From 47417ab26951dd4b6ec5454be27cb957b50abbb3 Mon Sep 17 00:00:00 2001 From: Qiangming Xia Date: Sat, 18 Jan 2020 09:56:42 +0800 Subject: [PATCH] [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 CR-Id: ALPS03946622 Feature: [Module]Vibrator --- non_plat/hal_vibrator.te | 1 + 1 file changed, 1 insertion(+) diff --git a/non_plat/hal_vibrator.te b/non_plat/hal_vibrator.te index c88619d..7f13029 100644 --- a/non_plat/hal_vibrator.te +++ b/non_plat/hal_vibrator.te @@ -3,3 +3,4 @@ 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 };