Allows the edgetpu_logging service to write to the edgetpu sysfs.

Test: make selinux_policy -j128
Bug: 151063663
Change-Id: I5ac619b34bb6fb17caa4c00ac62ac6802c776d84
This commit is contained in:
qinyiyan 2021-05-14 13:54:04 -07:00
parent d2558a05b3
commit bfbf29c18c

View file

@ -7,7 +7,7 @@ allow edgetpu_logging edgetpu_device:chr_file rw_file_perms;
# Allows the logging service to access /sys/class/edgetpu
allow edgetpu_logging sysfs_edgetpu:dir search;
allow edgetpu_logging sysfs_edgetpu:file r_file_perms;
allow edgetpu_logging sysfs_edgetpu:file rw_file_perms;
# Allow TPU logging service to log to stats service. (metrics)
allow edgetpu_logging fwk_stats_service:service_manager find;