blob: a50bec19da08481eaf3f31b29a7886863c25b4ef [file] [log] [blame]
Amit Pundir4e375822019-04-18 16:46:10 +05301#####################################
2# gpu_access(client_domain)
3# Allow client_domain to communicate with the GPU
4define(`gpu_access', `
5allow $1 dri_device:dir { open read search };
6allow $1 sysfs_gpu:dir search;
John Stultz26f5a0d2020-09-18 20:54:06 +00007allow $1 gpu_device:chr_file { getattr ioctl map open read write };
8allow $1 graphics_device:chr_file { getattr };
Amit Pundir4e375822019-04-18 16:46:10 +05309allow $1 sysfs_gpu:file { getattr open read };
Amit Pundir4e375822019-04-18 16:46:10 +053010')