mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
Add mesa abstraction
Add mesa abstraction to allow writing to the Mesa-specific cache locations and listing devices. Abstraction is needed for applications utilizing OpenGL API with Mesa implementation available on the system.
This commit is contained in:
13
profiles/apparmor.d/abstractions/mesa
Normal file
13
profiles/apparmor.d/abstractions/mesa
Normal file
@@ -0,0 +1,13 @@
|
||||
# vim:syntax=apparmor
|
||||
# Rules for Mesa implementation of the OpenGL API
|
||||
|
||||
# System files
|
||||
/dev/dri/ r, # libGLX_mesa.so calls drmGetDevice2()
|
||||
|
||||
# User files
|
||||
owner @{HOME}/.cache/ w, # if user clears all caches
|
||||
owner @{HOME}/.cache/mesa_shader_cache/ w,
|
||||
owner @{HOME}/.cache/mesa_shader_cache/index rw,
|
||||
owner @{HOME}/.cache/mesa_shader_cache/??/ w,
|
||||
owner @{HOME}/.cache/mesa_shader_cache/??/* rw,
|
||||
|
Reference in New Issue
Block a user