From d26b86c5d7cf0913328b48deca06b97e22ae8823 Mon Sep 17 00:00:00 2001 From: Jose Maldonado aka Yukiteru Date: Thu, 25 Apr 2024 22:02:59 -0400 Subject: [PATCH] Fix support for Qt5 and Qt5 in apps groups This changes fix access to qt5ct and qt6ct for: *Calibre *Flameshot *Telegram --- apparmor.d/groups/apps/calibre | 3 +-- apparmor.d/groups/apps/flameshot | 4 +--- apparmor.d/groups/apps/telegram-desktop | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apparmor.d/groups/apps/calibre b/apparmor.d/groups/apps/calibre index 1609a4a7..eff22aad 100644 --- a/apparmor.d/groups/apps/calibre +++ b/apparmor.d/groups/apps/calibre @@ -30,6 +30,7 @@ profile calibre @{exec_path} { include include include + include include include include @@ -66,8 +67,6 @@ profile calibre @{exec_path} { /usr/share/calibre/{,**} r, /usr/share/hwdata/pnp.ids r, - /usr/share/qt5/**.pak r, - /usr/share/qt5ct/** r, /etc/fstab r, /etc/inputrc r, diff --git a/apparmor.d/groups/apps/flameshot b/apparmor.d/groups/apps/flameshot index 14177cce..d55481cf 100644 --- a/apparmor.d/groups/apps/flameshot +++ b/apparmor.d/groups/apps/flameshot @@ -17,6 +17,7 @@ profile flameshot @{exec_path} { include include include + include include include include @@ -44,9 +45,6 @@ profile flameshot @{exec_path} { owner @{user_config_dirs}/flameshot/flameshot.ini* rwl -> @{user_config_dirs}/flameshot/#@{int}, owner @{user_config_dirs}/flameshot/flameshot.ini.lock rwk, - owner @{user_config_dirs}/qt5ct/{,**} r, - /usr/share/qt5ct/** r, - /var/lib/dbus/machine-id r, /etc/machine-id r, diff --git a/apparmor.d/groups/apps/telegram-desktop b/apparmor.d/groups/apps/telegram-desktop index a5b69e2e..d2969426 100644 --- a/apparmor.d/groups/apps/telegram-desktop +++ b/apparmor.d/groups/apps/telegram-desktop @@ -21,6 +21,7 @@ profile telegram-desktop @{exec_path} { include include include + include include include include @@ -77,9 +78,6 @@ profile telegram-desktop @{exec_path} { /usr/share/hwdata/pnp.ids r, - owner @{user_config_dirs}/qt5ct/{,**} r, - /usr/share/qt5ct/** r, - # Allowed apps to open @{lib}/firefox/firefox rPx, @{bin}/smplayer rPx,