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; | ||||
7 | allow $1 sysfs_gpu:file { getattr open read }; | ||||
Amit Pundir | 1153b9c | 2020-02-19 00:12:48 +0530 | [diff] [blame] | 8 | dontaudit $1 graphics_device:chr_file getattr; |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 9 | ') |