From 72784f4cbc24880e5c501ca4a15137272d228478 Mon Sep 17 00:00:00 2001 From: Jose Maldonado aka Yukiteru Date: Thu, 25 Apr 2024 22:33:12 -0400 Subject: [PATCH] Fix support for Qt5CT and Qt6CT in kde groups profiles This fix support in this apps/binaries *kio_http *kiod *kscreenlocker *kwalletd *kwalletmanager *kwin_wayland *sddm-greeter --- apparmor.d/groups/kde/kio_http_cache_cleaner | 2 +- apparmor.d/groups/kde/kiod | 1 - apparmor.d/groups/kde/kscreenlocker_greet | 2 -- apparmor.d/groups/kde/kwalletd | 4 ---- apparmor.d/groups/kde/kwalletmanager | 2 -- apparmor.d/groups/kde/kwin_wayland | 1 - apparmor.d/groups/kde/sddm-greeter | 2 -- 7 files changed, 1 insertion(+), 13 deletions(-) diff --git a/apparmor.d/groups/kde/kio_http_cache_cleaner b/apparmor.d/groups/kde/kio_http_cache_cleaner index f944ee5a..0f3c799a 100644 --- a/apparmor.d/groups/kde/kio_http_cache_cleaner +++ b/apparmor.d/groups/kde/kio_http_cache_cleaner @@ -10,11 +10,11 @@ include @{exec_path} += @{lib}/@{multiarch}/{,libexec/}kf{5,6}/kio_http_cache_cleaner profile kio_http_cache_cleaner @{exec_path} { include + include @{exec_path} mr, /usr/share/icu/@{int}.@{int}/*.dat r, - /usr/share/qt{5,}/translations/*.qm r, owner @{user_cache_dirs}/kio_http/{,*} rw, owner @{user_config_dirs}/kio_httprc r, diff --git a/apparmor.d/groups/kde/kiod b/apparmor.d/groups/kde/kiod index 4df8aed1..3792df03 100644 --- a/apparmor.d/groups/kde/kiod +++ b/apparmor.d/groups/kde/kiod @@ -20,7 +20,6 @@ profile kiod @{exec_path} { /usr/share/icons/breeze/index.theme r, /usr/share/mime/{,**} r, - /usr/share/qt/translations/*.qm r, owner @{user_cache_dirs}/icon-cache.kcache rw, diff --git a/apparmor.d/groups/kde/kscreenlocker_greet b/apparmor.d/groups/kde/kscreenlocker_greet index ece0f142..b2fe6006 100644 --- a/apparmor.d/groups/kde/kscreenlocker_greet +++ b/apparmor.d/groups/kde/kscreenlocker_greet @@ -45,8 +45,6 @@ profile kscreenlocker_greet @{exec_path} { @{lib}/@{multiarch}/libexec/kcheckpass rPx, /usr/share/plasma/** r, - /usr/share/qt/translations/*.qm r, - /usr/share/qt5ct/** r, /usr/share/wallpapers/{,**} r, /usr/share/wallpapers/Path/contents/images/*.{jpg,png} r, /usr/share/wayland-sessions/{,*.desktop} r, diff --git a/apparmor.d/groups/kde/kwalletd b/apparmor.d/groups/kde/kwalletd index 2b1b7f11..eb36bd8a 100644 --- a/apparmor.d/groups/kde/kwalletd +++ b/apparmor.d/groups/kde/kwalletd @@ -26,9 +26,6 @@ profile kwalletd @{exec_path} { @{bin}/gpgsm rCx -> gpg, /usr/share/color-schemes/{,**} r, - /usr/share/qt/translations/*.qm r, - /usr/share/qt{5,6}/qtlogging.ini r, - /usr/share/qt5ct/** r, /etc/machine-id r, /var/lib/dbus/machine-id r, @@ -40,7 +37,6 @@ profile kwalletd @{exec_path} { owner @{user_config_dirs}/kwalletrc r, owner @{user_config_dirs}/kwalletrc rwl -> @{user_config_dirs}/#@{int}, owner @{user_config_dirs}/kwalletrc.lock rwk, - owner @{user_config_dirs}/qt5ct/{,**} r, owner @{user_share_dirs}/kwalletd/ rw, owner @{user_share_dirs}/kwalletd/** rwkl -> @{user_share_dirs}/kwalletd/#@{int}, diff --git a/apparmor.d/groups/kde/kwalletmanager b/apparmor.d/groups/kde/kwalletmanager index ac751776..90e8dbf2 100644 --- a/apparmor.d/groups/kde/kwalletmanager +++ b/apparmor.d/groups/kde/kwalletmanager @@ -23,7 +23,6 @@ profile kwalletmanager @{exec_path} { @{exec_path} mr, /usr/share/kxmlgui5/kwalletmanager5/kwalletmanager.rc r, - /usr/share/qt5ct/** r, /etc/fstab r, /etc/machine-id r, @@ -32,7 +31,6 @@ profile kwalletmanager @{exec_path} { owner @{user_cache_dirs}/icon-cache.kcache rw, owner @{user_config_dirs}/#@{int} rw, - owner @{user_config_dirs}/qt5ct/{,**} r, owner @{user_config_dirs}/kwalletmanager5rc rw, owner @{user_config_dirs}/kwalletmanager5rc.* rwl -> @{user_config_dirs}/#@{int}, owner @{user_config_dirs}/kwalletmanager5rc.lock rwk, diff --git a/apparmor.d/groups/kde/kwin_wayland b/apparmor.d/groups/kde/kwin_wayland index c730307b..6b570b1d 100644 --- a/apparmor.d/groups/kde/kwin_wayland +++ b/apparmor.d/groups/kde/kwin_wayland @@ -42,7 +42,6 @@ profile kwin_wayland @{exec_path} flags=(attach_disconnected mediate_deleted) { /usr/share/libinput/{,**} r, /usr/share/pipewire/client.conf r, /usr/share/plasma/desktoptheme/** r, - /usr/share/qt/translations/*.qm r, /etc/pipewire/client.conf.d/ r, /etc/xdg/kscreenlockerrc r, diff --git a/apparmor.d/groups/kde/sddm-greeter b/apparmor.d/groups/kde/sddm-greeter index 9a53cad7..f19aaf47 100644 --- a/apparmor.d/groups/kde/sddm-greeter +++ b/apparmor.d/groups/kde/sddm-greeter @@ -30,7 +30,6 @@ profile sddm-greeter @{exec_path} { /usr/share/desktop-base/*-theme/login/*.svg r, /usr/share/plasma/desktoptheme/** r, - /usr/share/qt5ct/** r, /usr/share/sddm/{,**} r, /usr/share/wayland-sessions/{,*.desktop} r, /usr/share/xsessions/{,*.desktop} r, @@ -58,7 +57,6 @@ profile sddm-greeter @{exec_path} { owner @{user_cache_dirs}/sddm-greeter/{,**} rwl, owner @{user_config_dirs}/plasmarc r, - owner @{user_config_dirs}/qt5ct/{,**} r, # If one is blocked, the others are probed. deny owner @{HOME}/#@{int} mrw,