From 6810f4b050de77e245deb3614f018e140836ed12 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 1 Dec 2023 21:57:01 +0000 Subject: [PATCH] fix(profile): add config dir on yt-dlp fix #258 --- apparmor.d/profiles-s-z/yt-dlp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apparmor.d/profiles-s-z/yt-dlp b/apparmor.d/profiles-s-z/yt-dlp index 2c5b6610d..45bde4754 100644 --- a/apparmor.d/profiles-s-z/yt-dlp +++ b/apparmor.d/profiles-s-z/yt-dlp @@ -28,6 +28,7 @@ profile yt-dlp @{exec_path} { @{bin}/ r, @{bin}/file rix, + @{bin}/uname rix, @{bin}/ffmpeg rPx, @{bin}/ffprobe rPx, @@ -38,8 +39,10 @@ profile yt-dlp @{exec_path} { owner @{user_videos_dirs}/{,**} rwk, owner @{user_cache_dirs}/ rw, - owner @{user_cache_dirs}/yt-dlp/ rw, - owner @{user_cache_dirs}/yt-dlp/** rw, + owner @{user_cache_dirs}/yt-dlp/{,**} rw, + + owner @{user_config_dirs}/ rw, + owner @{user_config_dirs}/yt-dlp/{,**} rw, owner @{PROC}/@{pid}/fd/ r,