summaryrefslogtreecommitdiffstats
path: root/non_plat/hal_vibrator.te
diff options
context:
space:
mode:
authorQiangming Xia <qiangming.xia@mediatek.com>2018-01-08 10:45:03 +0800
committerQiangming xia <qiangming.xia@mediatek.com>2018-05-09 11:30:18 +0800
commited1f986144b0203c1ae7aaba37abab0395a6b2b7 (patch)
tree64fea1021c21da5e49f9eb12749a789dca89d639 /non_plat/hal_vibrator.te
parentacc5e4042b88679a690a6ee62c63161e158f26b0 (diff)
downloaddevice_mediatek_wembley-sepolicy-ed1f986144b0203c1ae7aaba37abab0395a6b2b7.tar.gz
device_mediatek_wembley-sepolicy-ed1f986144b0203c1ae7aaba37abab0395a6b2b7.tar.bz2
device_mediatek_wembley-sepolicy-ed1f986144b0203c1ae7aaba37abab0395a6b2b7.zip
[ALPS03719620] vibrator: Add sepolicy rule
[Detail] Add sysfs access rules for vibrator [Solution] Add sysfs open, read and write sepolicy rules in hal_vibrator.te Change-Id: Id7f177b9d3d467abbecb8bc82c6eea8ad20686d5 Signed-off-by: Qiangming Xia <qiangming.xia@mediatek.com> CR-Id: ALPS03719620 Feature: Sensor Hub (cherry picked from commit ecc33e156f84105aa3f4dea1c158dbc27524de56)
Diffstat (limited to 'non_plat/hal_vibrator.te')
-rw-r--r--non_plat/hal_vibrator.te1
1 files changed, 1 insertions, 0 deletions
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 };