Merge "NeuralNetworks: Allow Neural networks to access perfhal."
This commit is contained in:
commit
a60235d186
1 changed files with 1 additions and 3 deletions
4
generic/vendor/common/hal_neuralnetworks.te
vendored
4
generic/vendor/common/hal_neuralnetworks.te
vendored
|
@ -28,6 +28,7 @@
|
|||
type vendor_hal_neuralnetworks_default, domain;
|
||||
hal_server_domain(vendor_hal_neuralnetworks_default, hal_neuralnetworks)
|
||||
hal_client_domain(vendor_hal_neuralnetworks_default, hal_graphics_allocator)
|
||||
hal_client_domain(vendor_hal_neuralnetworks_default, vendor_hal_perf)
|
||||
|
||||
# allow access to hal_allocator
|
||||
hal_client_domain(vendor_hal_neuralnetworks_default, hal_allocator)
|
||||
|
@ -43,9 +44,6 @@ allow vendor_hal_neuralnetworks_default ion_device:chr_file r_file_perms;
|
|||
# Allow access to dmabuf
|
||||
allow vendor_hal_neuralnetworks_default dmabuf_system_heap_device:chr_file r_file_perms;
|
||||
|
||||
#Allow access to perfhal
|
||||
allow vendor_hal_neuralnetworks_default vendor_hal_perf_hwservice:hwservice_manager find;
|
||||
|
||||
allow vendor_hal_neuralnetworks_default app_data_file:file { read getattr map };
|
||||
allow vendor_hal_neuralnetworks_default shell_data_file:file { read getattr map };
|
||||
allow vendor_hal_neuralnetworks_default vendor_hal_neuralnetworks_data_file:dir create_dir_perms;
|
||||
|
|
Loading…
Reference in a new issue