fix(abs): base: allow inherited mesa cache

mesa 24.2 introduced a shader disk cache which is enabled by default, which opens quite a lot of fd. They are not closed and get inherited by child programs.

Denying it can cause crash, so we are allowing it globally while the issue is beeing fixed in mesa.

See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11810
This commit is contained in:
Alexandre Pujol 2024-09-13 20:07:41 +01:00
parent db064b651e
commit 4ccf2156de
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -24,6 +24,12 @@
@{etc_rw}/localtime r,
/etc/locale.conf r,
# mesa 24.2 introduced a shader disk cache which opens quite a lot of fd.
# They are not closed and get inherited by child programs. Denying it can cause
# crash, so we are allowing it globally while the issue is beeing fixed in mesa.
owner @{user_cache_dirs}/mesa_shader_cache_db/part@{int}/mesa_cache.db rw,
owner @{user_cache_dirs}/mesa_shader_cache_db/part@{int}/mesa_cache.idx rw,
@{sys}/devices/system/cpu/possible r,
@{PROC}/sys/kernel/core_pattern r,