From ff0ea9c6b09f124ba7ea432f7b32679efdc52af1 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Wed, 27 Mar 2024 16:06:01 -0600 Subject: [PATCH] apparmor: apply fix LP:2003702 for pidgin like clients. --- ...641dd3502fcfb897d3b96e197628b674ce3c.patch | 26 ++++++++++++++++ helpers/make-apparmor | 30 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 helpers/DATA/apparmor/b5a7641dd3502fcfb897d3b96e197628b674ce3c.patch create mode 100644 helpers/make-apparmor diff --git a/helpers/DATA/apparmor/b5a7641dd3502fcfb897d3b96e197628b674ce3c.patch b/helpers/DATA/apparmor/b5a7641dd3502fcfb897d3b96e197628b674ce3c.patch new file mode 100644 index 0000000..2a2194f --- /dev/null +++ b/helpers/DATA/apparmor/b5a7641dd3502fcfb897d3b96e197628b674ce3c.patch @@ -0,0 +1,26 @@ +From b5a7641dd3502fcfb897d3b96e197628b674ce3c Mon Sep 17 00:00:00 2001 +From: Adrian Heine +Date: Mon, 23 Jan 2023 20:35:29 +0100 +Subject: [PATCH] Add pipewire client.conf to audio abstractions + +Fixes: https://bugs.launchpad.net/bugs/2003702 +--- + profiles/apparmor.d/abstractions/audio | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/profiles/apparmor.d/abstractions/audio b/profiles/apparmor.d/abstractions/audio +index 01493260d..dd783992d 100644 +--- a/profiles/apparmor.d/abstractions/audio ++++ b/profiles/apparmor.d/abstractions/audio +@@ -85,5 +85,8 @@ owner @{HOME}/.local/share/openal/hrtf/{,**} r, + # wildmidi + /etc/wildmidi/wildmidi.cfg r, + ++# pipewire ++/usr/share/pipewire/client.conf r, ++ + # Include additions to the abstraction + include if exists +-- +GitLab + diff --git a/helpers/make-apparmor b/helpers/make-apparmor new file mode 100644 index 0000000..974ef68 --- /dev/null +++ b/helpers/make-apparmor @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Copyright (C) 2024 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 +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +VERSION=0 + +. ./config + +# Apply fix for pipewire on apparmor, see more at: +# https://bugs.launchpad.net/apparmor/+bug/2003702 +patch --no-backup-if-mismatch -p1 < $DATA/b5a7641dd3502fcfb897d3b96e197628b674ce3c.patch + +changelog "Apply fix LP:2003702 for pidgin like clients." + +package