hal_neuralnetworks_armnn: allow GPU access

Neuralnetworks for armnn driver needs GPU access in order to issue
OpenCL commands to GPU. Add rule that allows this.

Fixes: 183673130
Test: setenforce 1, stop and start hal, see that hal started.
Change-Id: I9be0ee4326e5e128a37f2c4df0878f8fbbea7f8d
This commit is contained in:
Kevin DuBois 2021-03-25 11:10:40 -07:00
parent 5b5a004593
commit 9c8327de8d

View file

@ -1,4 +1,7 @@
type hal_neuralnetworks_armnn, domain;
type hal_neuralnetworks_armnn_exec, vendor_file_type, exec_type, file_type;
allow hal_neuralnetworks_armnn gpu_device:chr_file rw_file_perms;
init_daemon_domain(hal_neuralnetworks_armnn)