1# ============================================================================== 2# Type Declaration 3# ============================================================================== 4type mtk_hal_light, domain; 5type mtk_hal_light_exec, exec_type, file_type, vendor_file_type; 6 7# hwbinder access 8init_daemon_domain(mtk_hal_light) 9hwbinder_use(mtk_hal_light) 10 11# call into system_server process (callbacks) 12binder_call(mtk_hal_light, system_server) 13 14# system file 15allow mtk_hal_light system_file:dir read; 16allow mtk_hal_light system_file:dir open; 17 18allow mtk_hal_light sysfs_leds:lnk_file read; 19allow mtk_hal_light sysfs_leds:file rw_file_perms; 20allow mtk_hal_light sysfs_leds:dir r_dir_perms; 21 22get_prop(mtk_hal_light, hwservicemanager_prop) 23hal_server_domain(mtk_hal_light,hal_light); 24