Added device sepolicy rules for NN HAL 1.2 implementation

Change-Id: Ibedaf1e6b3756664398a2e7f7ebbea9de069ca06
This commit is contained in:
Alex Kuoch 2019-01-17 16:13:13 -05:00
parent baf172aa10
commit a20bceae50
2 changed files with 3 additions and 3 deletions

View file

@ -149,4 +149,4 @@
/vendor/lib(64)?/hw/vulkan\.msmnile\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/bin/sscrpcd u:object_r:sensors_exec:s0
/vendor/bin/hw/android\.hardware\.neuralnetworks@1\.1-service-qti u:object_r:hal_neuralnetworks_default_exec:s0
/vendor/bin/hw/android\.hardware\.neuralnetworks@1\.2-service-qti u:object_r:hal_neuralnetworks_default_exec:s0

View file

@ -36,8 +36,8 @@ allow hal_neuralnetworks_default qdsp_device:chr_file r_file_perms;
allow hal_neuralnetworks_default xdsp_device:chr_file r_file_perms;
allow hal_neuralnetworks_default ion_device:chr_file r_file_perms;
allow hal_neuralnetworks_default app_data_file:file { read getattr };
allow hal_neuralnetworks_default shell_data_file:file { read getattr };
allow hal_neuralnetworks_default app_data_file:file { read getattr map };
allow hal_neuralnetworks_default shell_data_file:file { read getattr map };
allow hal_neuralnetworks_default hal_neuralnetworks_data_file:dir create_dir_perms;
allow hal_neuralnetworks_default hal_neuralnetworks_data_file:{ file fifo_file } create_file_perms;
allow hal_neuralnetworks_default gpu_device:chr_file rw_file_perms;