Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 1 | ##################################### |
| 2 | # gpu_access(client_domain) |
| 3 | # Allow client_domain to communicate with the GPU |
| 4 | define(`gpu_access', ` |
| 5 | allow $1 dri_device:dir { open read search }; |
| 6 | allow $1 sysfs_gpu:dir search; |
John Stultz | 26f5a0d | 2020-09-18 20:54:06 +0000 | [diff] [blame] | 7 | allow $1 gpu_device:chr_file { getattr ioctl map open read write }; |
| 8 | allow $1 graphics_device:chr_file { getattr }; |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 9 | allow $1 sysfs_gpu:file { getattr open read }; |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 10 | ') |