• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type hal_neuralnetworks_hvx, domain;
2hal_server_domain(hal_neuralnetworks_hvx, hal_neuralnetworks)
3
4type hal_neuralnetworks_hvx_exec, exec_type, vendor_file_type, file_type;
5init_daemon_domain(hal_neuralnetworks_hvx)
6
7# Allow HVX NN HAL to communicate with hexagon
8allow hal_neuralnetworks_hvx ion_device:chr_file { read open ioctl };
9allow hal_neuralnetworks_hvx qdsp_device:chr_file { read open ioctl };
10
11# Allow HVX NN HAL to mmap a user-provided fd.
12allow hal_neuralnetworks_hvx app_data_file:file { read write getattr };
13allow hal_neuralnetworks_hvx shell_data_file:file { read write getattr };
14