Amit Pundir | 276a055 | 2019-11-23 22:27:15 +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; | ||||
7 | allow $1 sysfs_gpu:file { getattr open read }; | ||||
Amit Pundir | b9abca5 | 2020-02-19 00:12:48 +0530 | [diff] [blame] | 8 | allow $1 graphics_device:chr_file getattr; |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 9 | ') |