1type hal_neuralnetworks_default, domain;
2hal_server_domain(hal_neuralnetworks_default, hal_neuralnetworks)
3
4type hal_neuralnetworks_default_exec, exec_type, vendor_file_type, file_type;
5init_daemon_domain(hal_neuralnetworks_default)
6
7allow hal_neuralnetworks_default fwk_sensor_hwservice:hwservice_manager find;
8allow hal_neuralnetworks_default qdsp_device:chr_file r_file_perms;
9allow hal_neuralnetworks_default ion_device:chr_file r_file_perms;
10
11allow hal_neuralnetworks_default app_data_file:file { read getattr };
12allow hal_neuralnetworks_default shell_data_file:file { read getattr };
13allow hal_neuralnetworks_default hal_neuralnetworks_data_file:dir create_dir_perms;
14allow hal_neuralnetworks_default hal_neuralnetworks_data_file:{ file fifo_file } create_file_perms;
15allow hal_neuralnetworks_default gpu_device:chr_file rw_file_perms;
16
17r_dir_file(hal_neuralnetworks_default, sysfs_soc)
18r_dir_file(hal_neuralnetworks_default, adsprpcd_file)
19