Merge "Update sepolicy for the egetpu_logging service to access the sysfs." into sc-dev
This commit is contained in:
commit
ca24e70422
2 changed files with 6 additions and 1 deletions
4
whitechapel/vendor/google/edgetpu_logging.te
vendored
4
whitechapel/vendor/google/edgetpu_logging.te
vendored
|
@ -4,3 +4,7 @@ init_daemon_domain(edgetpu_logging)
|
||||||
|
|
||||||
# The logging service accesses /dev/abrolhos
|
# The logging service accesses /dev/abrolhos
|
||||||
allow edgetpu_logging edgetpu_device:chr_file rw_file_perms;
|
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;
|
||||||
|
|
3
whitechapel/vendor/google/genfs_contexts
vendored
3
whitechapel/vendor/google/genfs_contexts
vendored
|
@ -97,7 +97,8 @@ genfscon proc /fts_ext/driver_test
|
||||||
genfscon sysfs /devices/virtual/sec/tsp u:object_r:sysfs_touch:s0
|
genfscon sysfs /devices/virtual/sec/tsp u:object_r:sysfs_touch:s0
|
||||||
|
|
||||||
# EdgeTPU
|
# 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
|
# Vendor sched files
|
||||||
genfscon sysfs /kernel/vendor_sched/clear_prefer_high_cap u:object_r:sysfs_vendor_sched:s0
|
genfscon sysfs /kernel/vendor_sched/clear_prefer_high_cap u:object_r:sysfs_vendor_sched:s0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue