Merge "Update sepolicy for the egetpu_logging service to access the sysfs." into sc-dev

This commit is contained in:
TreeHugger Robot 2021-04-16 02:15:58 +00:00 committed by Android (Google) Code Review
commit ca24e70422
2 changed files with 6 additions and 1 deletions

View file

@ -4,3 +4,7 @@ init_daemon_domain(edgetpu_logging)
# The logging service accesses /dev/abrolhos
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;

View file

@ -97,7 +97,8 @@ genfscon proc /fts_ext/driver_test
genfscon sysfs /devices/virtual/sec/tsp u:object_r:sysfs_touch:s0
# EdgeTPU
genfscon sysfs /class/edgetpu u:object_r:sysfs_edgetpu:s0
genfscon sysfs /devices/platform/1ce00000.abrolhos u:object_r:sysfs_edgetpu:s0
genfscon sysfs /devices/platform/abrolhos u:object_r:sysfs_edgetpu:s0
# Vendor sched files
genfscon sysfs /kernel/vendor_sched/clear_prefer_high_cap u:object_r:sysfs_vendor_sched:s0