Commit graph

2 commits

Author SHA1 Message Date
Richard Hsu
da3b06d9c4 [Bringup] Add Janeiro sysfs(s) to part of sysfs_edgetpu group
For the logging service to access sysfs, the sysfs needs to be included in the sysfs_edgetpu group. This CL makes gs201 sepolicy on par with the gs101 version, by including janeiro (PRO) in the gs201 setup.

gs101 genfs file: https://source.corp.google.com/sc-dev/device/google/gs101-sepolicy/edgetpu/genfs_contexts;l=2?q=sysfs_edgetpu&ct=os

Bug: 196105736

Test: Restarted logging service on cloudripper. No AVC denial.

Change-Id: I4d5fa33e1110c28904f7fffea0024d7688387b11
2021-08-12 15:54:22 -07:00
Richard Hsu
02ccab0539 [Bringup] Update SEPolicy for TPU (Janeiro) for PRO.
Reuse the same SEPolicy for edgetpu gs101 for gs201.
1. gs101 sepolicy has been refactored into an edgetpu directory, which
is meant to be reused. We only need to match the gs201 side to mirror
that. This CL references Adam's ag/14911633.
2. In a separete CL, add /dev/janeiro into the common gs101 sepolicy.

Bug: 191185522

Test: run_tflite_test_odc passes.
https://paste.googleplex.com/5466657955774464

Change-Id: Idd9e47a3c8da70f9dd4696cb7db7d4439e9897d6
2021-06-17 17:22:43 -07:00