mtk14723 dc117a90e7 [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
2020-01-18 10:19:50 +08:00

24 lines
781 B
Plaintext

# ==============================================================================
# Type Declaration
# ==============================================================================
type mtk_hal_light, domain;
type mtk_hal_light_exec, exec_type, file_type, vendor_file_type;
# hwbinder access
init_daemon_domain(mtk_hal_light)
hwbinder_use(mtk_hal_light)
# call into system_server process (callbacks)
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_leds:lnk_file read;
allow mtk_hal_light sysfs_leds:file rw_file_perms;
allow mtk_hal_light sysfs_leds:dir r_dir_perms;
get_prop(mtk_hal_light, hwservicemanager_prop)
hal_server_domain(mtk_hal_light,hal_light);