Add edgetpu contexts and sepolicies.
bug: 236041918 Change-Id: Ie3d2833c3c297dad7304dca307778d2f6a155180
This commit is contained in:
parent
6de977c9ba
commit
b11f8d2103
4 changed files with 12 additions and 0 deletions
5
edgetpu/debug_camera_app.te
Normal file
5
edgetpu/debug_camera_app.te
Normal 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
2
edgetpu/file_contexts
Normal file
|
@ -0,0 +1,2 @@
|
|||
# EdgeTPU device (DarwiNN)
|
||||
/dev/edgetpu-soc u:object_r:edgetpu_device:s0
|
2
edgetpu/genfs_contexts
Normal file
2
edgetpu/genfs_contexts
Normal file
|
@ -0,0 +1,2 @@
|
|||
# EdgeTPU
|
||||
genfscon sysfs /devices/platform/1ce00000.rio u:object_r:sysfs_edgetpu:s0
|
3
edgetpu/google_camera_app.te
Normal file
3
edgetpu/google_camera_app.te
Normal 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 };
|
Loading…
Add table
Add a link
Reference in a new issue