From e1d8eb655e781dc94188c558308ef216c1573f53 Mon Sep 17 00:00:00 2001 From: Luis Guzman Date: Tue, 28 Oct 2025 23:43:55 +0000 Subject: [PATCH] apparmor-profiles-extra: fix pidgin apparmor profile not being able to access ibus socket --- ...70aed868a4ed76d74eecf3b210ce7bf3098ffab4.patch | 0 .../001_enable-restricted-dbus-update.patch | 0 .../002-add_allow_pidgin_ibus_socket_access.patch | 15 +++++++++++++++ helpers/make-apparmor-profiles-extra | 14 ++++++++------ 4 files changed, 23 insertions(+), 6 deletions(-) rename helpers/DATA/apparmor-profiles-extra/{ => patch_changes}/000-70aed868a4ed76d74eecf3b210ce7bf3098ffab4.patch (100%) rename helpers/DATA/apparmor-profiles-extra/{ => patch_changes}/001_enable-restricted-dbus-update.patch (100%) create mode 100644 helpers/DATA/apparmor-profiles-extra/patch_changes/002-add_allow_pidgin_ibus_socket_access.patch diff --git a/helpers/DATA/apparmor-profiles-extra/000-70aed868a4ed76d74eecf3b210ce7bf3098ffab4.patch b/helpers/DATA/apparmor-profiles-extra/patch_changes/000-70aed868a4ed76d74eecf3b210ce7bf3098ffab4.patch similarity index 100% rename from helpers/DATA/apparmor-profiles-extra/000-70aed868a4ed76d74eecf3b210ce7bf3098ffab4.patch rename to helpers/DATA/apparmor-profiles-extra/patch_changes/000-70aed868a4ed76d74eecf3b210ce7bf3098ffab4.patch diff --git a/helpers/DATA/apparmor-profiles-extra/001_enable-restricted-dbus-update.patch b/helpers/DATA/apparmor-profiles-extra/patch_changes/001_enable-restricted-dbus-update.patch similarity index 100% rename from helpers/DATA/apparmor-profiles-extra/001_enable-restricted-dbus-update.patch rename to helpers/DATA/apparmor-profiles-extra/patch_changes/001_enable-restricted-dbus-update.patch diff --git a/helpers/DATA/apparmor-profiles-extra/patch_changes/002-add_allow_pidgin_ibus_socket_access.patch b/helpers/DATA/apparmor-profiles-extra/patch_changes/002-add_allow_pidgin_ibus_socket_access.patch new file mode 100644 index 0000000..5c23e69 --- /dev/null +++ b/helpers/DATA/apparmor-profiles-extra/patch_changes/002-add_allow_pidgin_ibus_socket_access.patch @@ -0,0 +1,15 @@ +diff --git a/profiles/usr.bin.pidgin b/profiles/usr.bin.pidgin +index 78338084..6d18657d 100644 +--- a/profiles/usr.bin.pidgin ++++ b/profiles/usr.bin.pidgin +@@ -90,6 +90,10 @@ + # https://gitlab.gnome.org/GNOME/at-spi2-core/-/issues/43 + owner /{,var/}run/user/*/at-spi/bus* rw, + ++ # Allow IBus private socket under HOME cache (used by some IBus setups) ++ owner @{HOME}/.cache/ibus/ r, ++ owner @{HOME}/.cache/ibus/* rw, ++ + # Site-specific additions and overrides. See local/README for details. + #include + } diff --git a/helpers/make-apparmor-profiles-extra b/helpers/make-apparmor-profiles-extra index 6da7e12..600425b 100644 --- a/helpers/make-apparmor-profiles-extra +++ b/helpers/make-apparmor-profiles-extra @@ -2,6 +2,7 @@ # # Copyright (C) 2008-2010 Rubén Rodríguez # Copyright (C) 2025 Jacob K +# Copyright (C) 2025 Luis Guzmán # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,18 +19,19 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=1 +VERSION=2 . ./config # Apply patches for screen reader on in pidgin, see more at: # https://gitlab.trisquel.org/trisquel/package-helpers/-/issues/198 -for patch in $(ls -v ${DATA}/*.patch) -do - patch_p1 $patch -done + +apply_patch_changes -changelog "Apply fix for issue TPH#198 for using pidgin with the screen reader." +changelog " +Apply fix for issue TPH#198 for using pidgin with the screen reader. +Apply fix for pidgin not able to access ibus socket +" package