From dc117a90e78a5156e2a279d972864fab8ae1ed9d Mon Sep 17 00:00:00 2001 From: mtk14723 Date: Sat, 18 Jan 2020 10:19:50 +0800 Subject: [PATCH] [ALPS04761108] Backlight: remove the unused sepolicy [Detail] Remove the unused sepolicy, which has high risk MTK-Commit-Id: 93b6fa2d6408dc551867fb24b260b053a9b746a7 Change-Id: Id8ddccde37e766c59b1d258d17db2759da6a3ef9 CR-Id: ALPS04761108 Feature: [Android Default] Backlight --- non_plat/file.te | 4 ++-- non_plat/mtk_hal_light.te | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/non_plat/file.te b/non_plat/file.te index d181064..d942247 100644 --- a/non_plat/file.te +++ b/non_plat/file.te @@ -346,10 +346,10 @@ type debugfs_regmap, fs_type, debugfs_type; type sys_usb_rawbulk, fs_type, sysfs_type; # Backlight brightness file -type sysfs_vibrator_setting, fs_type, sysfs_type; +type sysfs_leds_setting, fs_type, sysfs_type; # Vibrator vibrate file -type sysfs_leds_setting, fs_type, sysfs_type; +type sysfs_vibrator_setting, fs_type, sysfs_type; # Date : 2019/04/09 # Purpose: mtk EM battery settings diff --git a/non_plat/mtk_hal_light.te b/non_plat/mtk_hal_light.te index 7a69812..de88326 100644 --- a/non_plat/mtk_hal_light.te +++ b/non_plat/mtk_hal_light.te @@ -14,7 +14,6 @@ binder_call(mtk_hal_light, system_server) # system file allow mtk_hal_light system_file:dir read; allow mtk_hal_light system_file:dir open; -allow mtk_hal_light sysfs:file rw_file_perms; allow mtk_hal_light sysfs_leds:lnk_file read; allow mtk_hal_light sysfs_leds:file rw_file_perms;