commit | 5675757d41bfcdfd84ad4e4cee4ea1f0938d4b05 | [log] [tgz] |
---|---|---|
author | Richard Hsu <hsuy@google.com> | Sat May 07 21:37:28 2022 -0700 |
committer | Richard Hsu <hsuy@google.com> | Sat May 07 22:28:22 2022 -0700 |
tree | db96cf096b827f89aa4928090ee913f97cb62ae1 | |
parent | 18cb713b621b18e9f15f3a23615cad5cf4d6befb [diff] |
[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