From 3fc787e073b890806678ce9b8e24ad3d939e79c0 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 1 Dec 2023 21:53:59 +0000 Subject: [PATCH] fix(profile): add cache dir for MPV. See #257 --- apparmor.d/profiles-m-r/mpv | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apparmor.d/profiles-m-r/mpv b/apparmor.d/profiles-m-r/mpv index a2fc020d..64a6a4b7 100644 --- a/apparmor.d/profiles-m-r/mpv +++ b/apparmor.d/profiles-m-r/mpv @@ -42,8 +42,11 @@ profile mpv @{exec_path} { @{bin}/yt-dlp rPx, /usr/share/libdrm/{,**} r, + /usr/share/pipewire/client-rt.conf r, + /etc/libva.conf r, /etc/mpv/* r, + /etc/pipewire/client-rt.conf.d/{,**} r, /etc/samba/smb.conf r, /etc/machine-id r, @@ -55,7 +58,7 @@ profile mpv @{exec_path} { owner @{user_torrents_dirs}/{,**} rw, owner @{user_videos_dirs}/{,**} rw, - owner @{user_config_dirs}/mpv/ rw, + owner @{user_cache_dirs}/mpv/{,**} rw, owner @{user_config_dirs}/mpv/{,**} rw, /tmp/ r,