summaryrefslogtreecommitdiff
path: root/sepolicy/edgetpu/priv_app.te
blob: db6e0a27af4682f51d8e9f09d817c9cef72214a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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 privileged applications to access the PowerHAL.
hal_client_domain(priv_app, hal_power)