blob: a560f8a38261c7f0f048b68857a48ee0ce51a0db [file] [log] [blame]
# airbrush service
type airbrush, domain;
type airbrush_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(airbrush)
hwbinder_use(airbrush)
add_hwservice(airbrush, hal_airbrush_hwservice)
add_service(airbrush, airbrush_faceauth_service)
add_service(airbrush, airbrush_tpu_service)
get_prop(airbrush, hwservicemanager_prop)
allow airbrush airbrush_sm_device:chr_file { rw_file_perms };
allow airbrush hal_graphics_allocator_default:fd use;
allow airbrush ion_device:chr_file r_file_perms;
# Allow Airbrush to make binder calls to Darwinn and vice versa
binder_call(airbrush, hal_neuralnetworks_darwinn)
binder_call(hal_neuralnetworks_darwinn, airbrush)
# Allow Airbrush to stat the IPU/TPU devices.
allow airbrush abc_tpu_device:chr_file getattr;
allow airbrush ipu_device:chr_file getattr;
allow airbrush sysfs_airbrush:file rw_file_perms;
allow airbrush sysfs_airbrush:dir r_dir_perms;
allow airbrush airbrush_data_file:file create_file_perms;
allow airbrush airbrush_data_file:dir rw_dir_perms;
allow airbrush fwk_stats_hwservice:hwservice_manager find;
binder_call(airbrush, stats_service_server)
vndbinder_use(airbrush)