summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormtk14723 <xing.zhang@mediatek.com>2019-09-03 11:35:35 +0800
committerXing Zhang <xing.zhang@mediatek.com>2020-01-07 14:48:33 +0800
commitedcfd78b06033dbb13016ebbb094cd2e02f8c04d (patch)
tree6ccdded4dd7442b396c1e784e90b11a1b38e78a2
parentae996c5246458b8f9ed9d81510dc9ab2dbcf3af5 (diff)
downloadwembley-sepolicy-edcfd78b06033dbb13016ebbb094cd2e02f8c04d.tar.gz
[ALPS04248635] Vibrator: add the new path for driver
[Detail] Add the new path for regulator-vibrator driver Change-Id: I6d63442e7bc859630035265a35b5e8651635a398 CR-Id: ALPS04248635 Feature: [Module]Vibrator (cherry picked from commit fc460909faba8ab1d940b30413f50612d543df33)
-rw-r--r--non_plat/genfs_contexts1
-rw-r--r--non_plat/hal_vibrator.te2
2 files changed, 2 insertions, 1 deletions
diff --git a/non_plat/genfs_contexts b/non_plat/genfs_contexts
index 3979e1b..bcc6d94 100644
--- a/non_plat/genfs_contexts
+++ b/non_plat/genfs_contexts
@@ -130,6 +130,7 @@ genfscon sysfs /power/vcorefs/opp_table u:object_r:sysfs_vcore_debug:s0
#Purpose : MTK Vibrator
genfscon sysfs /devices/virtual/timed_output/vibrator u:object_r:sysfs_vibrator:s0
genfscon sysfs /devices/platform/odm/odm:vibrator@0/leds/vibrator u:object_r:sysfs_vibrator:s0
+genfscon sysfs /devices/platform/soc/soc:regulator_vibrator/leds/vibrator u:object_r:sysfs_vibrator:s0
genfscon sysfs /devices/platform/leds-mt65xx/leds u:object_r:sysfs_leds:s0
# Date : 2018/08/109
# Purpose : mtk EM Power debug_log setting
diff --git a/non_plat/hal_vibrator.te b/non_plat/hal_vibrator.te
index 7f13029..11742f8 100644
--- a/non_plat/hal_vibrator.te
+++ b/non_plat/hal_vibrator.te
@@ -3,4 +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 };
+allow hal_vibrator sysfs_vibrator:file rw_file_perms;