From 49b9a20997a2f636f8dc127478623aeb072fdb3c Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Fri, 20 Sep 2024 22:26:59 +0200 Subject: [PATCH] abstractions/mesa: allow ~/.cache/mesa_shader_cache_db/ ... which is used by Mesa 24.2.2 Reported by darix. Fixes: https://bugs.launchpad.net/bugs/2081692 --- profiles/apparmor.d/abstractions/mesa | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/profiles/apparmor.d/abstractions/mesa b/profiles/apparmor.d/abstractions/mesa index ecabc20ec..c401a8eee 100644 --- a/profiles/apparmor.d/abstractions/mesa +++ b/profiles/apparmor.d/abstractions/mesa @@ -20,6 +20,12 @@ owner @{HOME}/.cache/mesa_shader_cache/[a-f0-9][a-f0-9]/[0-9a-f]* rw, owner @{HOME}/.cache/mesa_shader_cache/[a-f0-9][a-f0-9]/[0-9a-f]*.tmp rwk, + owner @{HOME}/.cache/mesa_shader_cache_db/ rw, + owner @{HOME}/.cache/mesa_shader_cache_db/index rwk, + owner @{HOME}/.cache/mesa_shader_cache_db/part*/ rw, + owner @{HOME}/.cache/mesa_shader_cache_db/part*/mesa_cache.db rwk, + owner @{HOME}/.cache/mesa_shader_cache_db/part*/mesa_cache.idx rwk, + # 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, -- GitLab