From 60ba9ae9654b99b2ae847128b6a84b724b1f541d Mon Sep 17 00:00:00 2001 From: Jose Maldonado aka Yukiteru Date: Fri, 10 May 2024 14:54:15 -0400 Subject: [PATCH] Fix and optimizations for flameshot profile Profile simplification PATH and better use for abstractions. Add permission for @{user_cache_dirs} --- apparmor.d/profiles-a-f/flameshot | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apparmor.d/profiles-a-f/flameshot b/apparmor.d/profiles-a-f/flameshot index ecf9ef90..66624515 100644 --- a/apparmor.d/profiles-a-f/flameshot +++ b/apparmor.d/profiles-a-f/flameshot @@ -11,6 +11,7 @@ include profile flameshot @{exec_path} { include include + include include include include @@ -35,13 +36,13 @@ profile flameshot @{exec_path} { /var/lib/dbus/machine-id r, /etc/machine-id r, - /usr/share/flameshot/translations/* r, + /usr/share/flameshot/{,**} r, - owner @{user_config_dirs}/dconf/user r, + owner @{user_cache_dirs}/flameshot/ rw, + owner @{user_cache_dirs}/flameshot/** rw, owner @{user_config_dirs}/flameshot/ rw, owner @{user_config_dirs}/flameshot/** rwlk -> @{user_config_dirs}/flameshot/**, - owner @{user_config_dirs}/ibus/bus/@{hex32}-unix-wayland-0 r, - owner @{run}/user/@{uid}/dconf/user rw, + owner @{user_config_dirs}/ibus/bus/@{hex32}-unix-{,wayland-}@{int} r, owner @{tmp}/*= rw, owner @{tmp}/*.png rw,