Added device sepolicy rules for NN HAL 1.2 implementation
Change-Id: Ibedaf1e6b3756664398a2e7f7ebbea9de069ca06
This commit is contained in:
parent
baf172aa10
commit
a20bceae50
2 changed files with 3 additions and 3 deletions
2
generic/vendor/msmnile/file_contexts
vendored
2
generic/vendor/msmnile/file_contexts
vendored
|
@ -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
|
||||
|
|
4
generic/vendor/msmnile/hal_neuralnetworks.te
vendored
4
generic/vendor/msmnile/hal_neuralnetworks.te
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue