Add gpu_device access to hal_neuralnetworks
... as this is needed for the hal to access and map gralloc buffers on devices such as Cuttlefish. Previously, this sepolicy is added in device specific directories but the Cuttlefish team is looking at centralizing the sepolicy. Bug: b/161819018 Test: `atest CtsNNAPITestCases` Test: `atest VtsHalNeuralnetworksV1_0TargetTest` Change-Id: Ia5b2704e2cdeedfa19d160e546d811b7d1c21aa9
This commit is contained in:
parent
a77c2963e9
commit
21021194c4
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@ allow hal_neuralnetworks hidl_memory_hwservice:hwservice_manager find;
|
|||
allow hal_neuralnetworks hal_allocator:fd use;
|
||||
allow hal_neuralnetworks hal_graphics_mapper_hwservice:hwservice_manager find;
|
||||
allow hal_neuralnetworks hal_graphics_allocator:fd use;
|
||||
allow hal_neuralnetworks gpu_device:chr_file rw_file_perms;
|
||||
allow hal_neuralnetworks gpu_device:dir r_dir_perms;
|
||||
|
||||
# Allow NN HAL service to use a client-provided fd residing in /data/data/.
|
||||
allow hal_neuralnetworks_server app_data_file:file { read write getattr map };
|
||||
|
|
Loading…
Reference in a new issue