Merge "gpu: add SELinux policies for GPU probe."
This commit is contained in:
commit
2d95ed0538
3 changed files with 12 additions and 0 deletions
3
gpu/gpu.mk
Normal file
3
gpu/gpu.mk
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/gpu/sepolicy
|
||||||
|
|
||||||
|
PRODUCT_PACKAGES += gpu_probe
|
1
gpu/sepolicy/file_contexts
Normal file
1
gpu/sepolicy/file_contexts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/vendor/bin/gpu_probe u:object_r:gpu_probe_exec:s0
|
8
gpu/sepolicy/gpu_probe.te
Normal file
8
gpu/sepolicy/gpu_probe.te
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue