[Detail] New sepolicy path declared and also support legacy android. MTK-Commit-Id: 8982268bbef8f852c153428f1a5f83849953c7c2 Change-Id: Ic10f297a312ff2e89e44a0aa323ffa11bc78ff6e CR-Id: ALPS04767749 Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
25 lines
827 B
Plaintext
25 lines
827 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:file rw_file_perms;
|
|
|
|
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);
|