device/google/cuttlefish/shared/sepolicy/vendor/te_macros

10 lines
356 B
Plaintext
Raw Permalink Normal View History

2025-08-25 08:28:21 +08:00
#####################################
# gpu_access(client_domain)
# Allow client_domain to communicate with the virgl GPU
define(`gpu_access', `
allow $1 gpu_device:dir { open read search };
allow $1 gpu_device:chr_file { getattr ioctl map open read write };
allow $1 graphics_device:chr_file { getattr };
allow $1 sysfs_gpu:file { getattr open read };
')