9 Commits

Author SHA1 Message Date
Treehugger Robot
c5c4ae5c1f Merge "Allow hal_neuralnetworks_darwinn and dba service to read DMA buf." into main 2023-10-10 23:26:20 +00:00
qinyiyan
af16ce519d Allow hal_neuralnetworks_darwinn and dba service to read DMA buf.
AVC denials seen:
avc:  denied  { read } for  name="system" dev="tmpfs" ino=592 scontext=u:r:hal_neuralnetworks_darwinn:s0 tcontext=u:object_r:dmabuf_system_heap_device:s0 tclass=chr_file permissive=0

bug: 303526151
Test: forrest build
Change-Id: I42e714908df163df6a328f451202a93fc11caeee
2023-10-05 14:13:31 -07:00
Yu-Chi Cheng
7232d53128 Added SELinux rules for vendor.darwinn.runtime. properties.
This allows DarwiNN runtime components to access related system
properties, including the ones that control host DMA-BUF allocation.

Bug: 297432189
Test: verified camera to work on local device
Change-Id: I4b3f566417445a2a0ef6eae64d9b0ed7d20ff26c
2023-09-26 20:49:42 +00:00
Renato Grottesi
146e77649b Revert^2 "New ArmNN AIDL SELinux permissions and settings"
58c26f29062fb48925f58c88aa11b25403c370c3

Compile ArmNN shim over the support library

This change adds the SELinux permissions for the new
ArmNN AIDL backend based on a shim over the NNAPI
Support Library.

Test: Local run of CtsNNAPITestCases
Test: Local run of VtsHalNeuralnetworksTargetTest
Test: Local run of MLTS Benchmark
Bug: 283724775
Change-Id: I24b69c4f6d65f45ec6935744717b66bed14cb236
2023-07-13 09:08:41 +00:00
Android Culprit Assistant
58c26f2906 Revert "New ArmNN AIDL SELinux permissions and settings"
This revert was created by Android Culprit Assistant. The culprit was identified in the following culprit search session (http://go/aca-get/123b2665-83ef-4fd0-904d-a0d8c5782db9).

Bug: b/290958543
Change-Id: I6c085728c663845efb1006e62a54482c01d500ff
2023-07-12 20:49:39 +00:00
Renato Grottesi
6deca6aed4 New ArmNN AIDL SELinux permissions and settings
Compile ArmNN shim over the support library

This change adds the SELinux permissions for the new
ArmNN AIDL backend based on a shim over the NNAPI
Support Library.

Test: Local run of CtsNNAPITestCases
Test: Local run of VtsHalNeuralnetworksTargetTest
Test: Local run of MLTS Benchmark
Bug: 283724775
Change-Id: Ie63c9adebf723c0df22c9533f46ad7475414dd3a
2023-07-12 13:08:22 +00:00
Yu-Chi Cheng
8e965d36a2 Added the hetero runtime system property SELinux rules.
Currently, there is a hetero runtime property that darwinn
and other hetero runtime project will use: the trace level
(vendor.google.silicon.max_trace_level).

This change allows edgetpu services and clients to be able to see
that property in order to change the trace level.

Bug: 272292650
Test: verified it to build but not tested on device yet since selinux
has not been enforced yet.

Change-Id: Id6d345b92d2e710b41ca58907ad443fc2667054a
2023-03-16 14:10:10 -07:00
feiyuchen
bd8d9ca737 Allow NNAPI HAL to read tflite_delegate.force_disable_io_coherency flag
The flag was added in ag/21062178.
After this CL, the flag is readable by all apps and all DarwiNN HALs.

Bug: 268548819
Change-Id: I28a185d66002f1656aeb10723c34d5eb517742c4
2023-03-07 20:53:10 +00:00
Adam Shih
af0e90ecb1 centralize common settings for edgeTPU
Bug: 258114806
Test: build pass with all the things still in the ROM
Change-Id: Iafa355c047d39cfb21ef043ed0e7b4108630b781
2022-11-08 13:34:35 +08:00