feiyuchen 12b799b125 Add SELinux policy for apps to use Tachyon lib
Bug: 339133130
Test: Verified apps can now open Tachyon client lib
Change-Id: I8ca9f08517ae8fc1deb5f97ce2823cd5eb5fafb6
2024-05-08 18:48:03 +00:00

13 lines
542 B
Plaintext

# Allows privileged applications to discover the EdgeTPU service.
allow priv_app edgetpu_app_service:service_manager find;
# Allows privileged applications to discover the NNAPI TPU service.
allow priv_app edgetpu_nnapi_service:service_manager find;
# Allows privileged applications to access the EdgeTPU device, except open,
# which is guarded by the EdgeTPU service.
allow priv_app edgetpu_device:chr_file { getattr read write ioctl map };
# Allows EdgeTPU Tachyon service to call the app.
binder_call(edgetpu_tachyon_server, priv_app);