device_google_gs101/edgetpu
Richard Hsu 5675757d41 [SELinux] Allow NNAPI HAL to log traces to perfetto under userdebug builds
Allows DarwiNN NNAPI HAL to log traces to perfetto only under userdebug builds. This is similar to the camera HAL fix in ag/17080874

Error message:
TracingMuxer: type=1400 audit(0.0:486): avc: denied { write } for name="traced_producer" dev="tmpfs" ino=1116 scontext=u:r:hal_neuralnetworks_darwinn:s0

This rule is common for EdgeTPU in both WHI and PRO.

Bug: 231838536

Test: tested on PRO before and after the change, and the traces now shows up.

Example: https://ui.perfetto.dev/#!/?s=ab911b3972bc16a1a831e148a7446c09757a08426bbe3c3b16d31a728b1d923
https://screenshot.googleplex.com/3roWETkTFyiDjW9

Change-Id: I8d4a57e262087aa4ec6670a487d7b06d2f2cde69
2022-05-07 22:28:22 -07:00
..
device.te organize EdgeTPU modules and sepolicy 2021-06-09 10:39:04 +08:00
edgetpu_app_service.te organize EdgeTPU modules and sepolicy 2021-06-09 10:39:04 +08:00
edgetpu_logging.te organize EdgeTPU modules and sepolicy 2021-06-09 10:39:04 +08:00
edgetpu_vendor_service.te Allowed EdgeTPU compilation services (tflite and nnapi) to access 2021-06-16 16:17:14 -07:00
file.te organize EdgeTPU modules and sepolicy 2021-06-09 10:39:04 +08:00
file_contexts Grant selinux permission to com.google.edgetpu_vendor_service-V2-ndk.so 2021-11-02 09:06:16 +00:00
genfs_contexts organize EdgeTPU modules and sepolicy 2021-06-09 10:39:04 +08:00
hal_neuralnetworks_darwinn.te [SELinux] Allow NNAPI HAL to log traces to perfetto under userdebug builds 2022-05-07 22:28:22 -07:00
priv_app.te qllow priv-app to access Pixel power HAL extension. 2021-06-10 17:56:17 +00:00
property.te organize EdgeTPU modules and sepolicy 2021-06-09 10:39:04 +08:00
property_contexts organize EdgeTPU modules and sepolicy 2021-06-09 10:39:04 +08:00
service.te organize EdgeTPU modules and sepolicy 2021-06-09 10:39:04 +08:00
service_contexts organize EdgeTPU modules and sepolicy 2021-06-09 10:39:04 +08:00
untrusted_app_all.te organize EdgeTPU modules and sepolicy 2021-06-09 10:39:04 +08:00
vendor_init.te organize EdgeTPU modules and sepolicy 2021-06-09 10:39:04 +08:00