Add edgetpu contexts and sepolicies.

bug: 236041918
Change-Id: Ie3d2833c3c297dad7304dca307778d2f6a155180
This commit is contained in:
qinyiyan 2022-07-06 12:06:58 -07:00
parent 6de977c9ba
commit b11f8d2103
4 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,5 @@
userdebug_or_eng(`
# Allows GCA-Eng to find and access the EdgeTPU.
allow debug_camera_app edgetpu_app_service:service_manager find;
allow debug_camera_app edgetpu_device:chr_file { getattr read write ioctl map };
')

2
edgetpu/file_contexts Normal file
View file

@ -0,0 +1,2 @@
# EdgeTPU device (DarwiNN)
/dev/edgetpu-soc u:object_r:edgetpu_device:s0

2
edgetpu/genfs_contexts Normal file
View file

@ -0,0 +1,2 @@
# EdgeTPU
genfscon sysfs /devices/platform/1ce00000.rio u:object_r:sysfs_edgetpu:s0

View file

@ -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 };