2018-07-02 09:46:30 -04:00
|
|
|
type hal_light_sdm845, coredomain, domain;
|
2019-02-03 05:54:04 -05:00
|
|
|
|
|
|
|
# Allow a base set of permissions required for a domain to offer a
|
|
|
|
# HAL implementation of the specified type over HwBinder.
|
|
|
|
typeattribute hal_light_sdm845 halserverdomain;
|
|
|
|
typeattribute hal_light_sdm845 hal_light_server;
|
|
|
|
|
|
|
|
# HwBinder IPC from client to server, and callbacks
|
|
|
|
binder_call(hal_light_client, hal_light_server)
|
|
|
|
binder_call(hal_light_server, hal_light_client)
|
|
|
|
|
|
|
|
add_hwservice(hal_light_server, hal_light_hwservice)
|
|
|
|
allow hal_light_client hal_light_hwservice:hwservice_manager find;
|
2018-07-02 09:46:30 -04:00
|
|
|
|
|
|
|
type hal_light_sdm845_exec, exec_type, file_type;
|
|
|
|
init_daemon_domain(hal_light_sdm845)
|
|
|
|
|
2019-02-03 05:54:04 -05:00
|
|
|
allow hal_light_sdm845 { sysfs_graphics sysfs_oem }:lnk_file read;
|
|
|
|
allow hal_light_sdm845 { sysfs_graphics sysfs_oem }:file rw_file_perms;
|
|
|
|
allow hal_light_sdm845 { sysfs_graphics sysfs_leds sysfs_oem }:dir r_dir_perms;
|