From 172271fdbc35bb63748a47bad56bdcfcdec4132e Mon Sep 17 00:00:00 2001 From: Yu-Chi Cheng Date: Fri, 25 Feb 2022 12:45:09 -0800 Subject: [PATCH] Allowed GCA to access EdgeTPU for P22 devices. This change includes the google_camera_app domain into the EdgeTPU selinux rules. With it the GCA is now able to access EdgeTPU. Bug: 221020793 Test: verified GCA to work on P22. Change-Id: I69010e2a8cca1429df402ae587b939d38e20a287 --- edgetpu/google_camera_app.te | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 edgetpu/google_camera_app.te diff --git a/edgetpu/google_camera_app.te b/edgetpu/google_camera_app.te new file mode 100644 index 00000000..a0ad7316 --- /dev/null +++ b/edgetpu/google_camera_app.te @@ -0,0 +1,3 @@ +# Allows GCA to find and access the EdgeTPU. +allow google_camera_app edgetpu_app_service:service_manager find; +allow google_camera_app edgetpu_device:chr_file { getattr read write ioctl map };