Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 1 | # HwBinder IPC from client to server, and callbacks |
| 2 | binder_call(hal_neuralnetworks_client, hal_neuralnetworks_server) |
| 3 | binder_call(hal_neuralnetworks_server, hal_neuralnetworks_client) |
| 4 | |
Steven Moreland | 9234e00 | 2018-06-06 09:30:18 -0700 | [diff] [blame] | 5 | hal_attribute_hwservice(hal_neuralnetworks, hal_neuralnetworks_hwservice) |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 6 | allow hal_neuralnetworks hidl_memory_hwservice:hwservice_manager find; |
| 7 | allow hal_neuralnetworks hal_allocator:fd use; |
Michael Butler | 3ff7bf8 | 2018-12-07 17:24:24 -0800 | [diff] [blame] | 8 | |
| 9 | # Allow NN HAL service to use a client-provided fd residing in /data/data/. |
| 10 | allow hal_neuralnetworks_server app_data_file:file { read write getattr map }; |
| 11 | |
| 12 | # Allow NN HAL service to use a client-provided fd residing in /data/local/tmp/. |
| 13 | allow hal_neuralnetworks_server shell_data_file:file { read write getattr map }; |
Przemyslaw Szczepaniak | 62a22ce | 2019-04-02 15:34:16 +0100 | [diff] [blame^] | 14 | |
| 15 | # Allow NN HAL client to check the ro.nnapi.extensions.deny_on_product |
| 16 | # property to determine whether to deny NNAPI extensions use for apps |
| 17 | # on product partition (apps in GSI are not allowed to use NNAPI extensions). |
| 18 | get_prop(hal_neuralnetworks_client, nnapi_ext_deny_product_prop); |
| 19 | # This property is only expected to be found in /product/build.prop, |
| 20 | # allow to be set only by init. |
| 21 | neverallow { domain -init } nnapi_ext_deny_product_prop:property_service set; |