Merge "gpu: add SELinux policies for GPU probe."

This commit is contained in:
Kevin DuBois 2023-03-30 17:27:23 +00:00 committed by Android (Google) Code Review
commit 2d95ed0538
3 changed files with 12 additions and 0 deletions

3
gpu/gpu.mk Normal file
View file

@ -0,0 +1,3 @@
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/gpu/sepolicy
PRODUCT_PACKAGES += gpu_probe

View file

@ -0,0 +1 @@
/vendor/bin/gpu_probe u:object_r:gpu_probe_exec:s0

View file

@ -0,0 +1,8 @@
# gpu_probe
type gpu_probe_exec, exec_type, vendor_file_type, file_type;
type gpu_probe, domain;
init_daemon_domain(gpu_probe)
allow gpu_probe gpu_device:chr_file rw_file_perms;
perfetto_producer(gpu_probe)