diff --git a/profiles/apparmor.d/abstractions/mesa b/profiles/apparmor.d/abstractions/mesa index e53c1f616..496b569ba 100644 --- a/profiles/apparmor.d/abstractions/mesa +++ b/profiles/apparmor.d/abstractions/mesa @@ -28,6 +28,12 @@ owner @{HOME}/.cache/mesa_shader_cache_db/part*/mesa_cache.db rwkl, owner @{HOME}/.cache/mesa_shader_cache_db/part*/mesa_cache.idx rwkl, + owner @{HOME}/.cache/radv_builtin_shaders/ rw, + owner @{HOME}/.cache/radv_builtin_shaders/index rwlk, + owner @{HOME}/.cache/radv_builtin_shaders/part*/ rw, + owner @{HOME}/.cache/radv_builtin_shaders/part*/mesa_cache.db rwlk, + owner @{HOME}/.cache/radv_builtin_shaders/part*/mesa_cache.idx rwlk, + # Fallback location when @{HOME}/.cache is not available owner /tmp/Temp-[a-f0-9]*/mesa_shader_cache/ rw, owner /tmp/Temp-[a-f0-9]*/mesa_shader_cache/index rw, @@ -35,7 +41,5 @@ owner /tmp/Temp-[a-f0-9]*/mesa_shader_cache/[a-f0-9][a-f0-9]/[0-9a-f]* rw, owner /tmp/Temp-[a-f0-9]*/mesa_shader_cache/[a-f0-9][a-f0-9]/[0-9a-f]*.tmp rwk, - owner @{HOME}/.cache/radv_builtin_shaders/index rw, - # Include additions to the abstraction include if exists