aboutsummaryrefslogtreecommitdiffstats
path: root/meta-pipewire
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-09-03 16:30:33 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-09-03 16:30:33 +0300
commit1e7b764c947d05ad985040011b01c800bcd9d99c (patch)
tree9ae1bc09016290663639ad4f791dad6a3d6877bf /meta-pipewire
parent9fc6d8e9bbc9746777c03471b643992abcb182a5 (diff)
pipewire: security-manager: add patch to grant dbus privilege to pipewire
Bug-AGL: SPEC-2792 Change-Id: Ie241273679f88e61e418bbb5518551ad33ff4b65 Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
Diffstat (limited to 'meta-pipewire')
-rw-r--r--meta-pipewire/recipes-security/security-manager/security-manager/0002-Grant-dbus-privilege-to-pipewire.patch26
-rw-r--r--meta-pipewire/recipes-security/security-manager/security-manager_%.bbappend5
2 files changed, 30 insertions, 1 deletions
diff --git a/meta-pipewire/recipes-security/security-manager/security-manager/0002-Grant-dbus-privilege-to-pipewire.patch b/meta-pipewire/recipes-security/security-manager/security-manager/0002-Grant-dbus-privilege-to-pipewire.patch
new file mode 100644
index 00000000..fbf9ca6f
--- /dev/null
+++ b/meta-pipewire/recipes-security/security-manager/security-manager/0002-Grant-dbus-privilege-to-pipewire.patch
@@ -0,0 +1,26 @@
+From f95469247c182b3c4b527af04b1ae50658461e85 Mon Sep 17 00:00:00 2001
+From: George Kiagiadakis <george.kiagiadakis@collabora.com>
+Date: Tue, 3 Sep 2019 16:24:49 +0300
+Subject: [PATCH] Grant dbus privilege to pipewire
+
+---
+ policy/security-manager-policy-reload | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/policy/security-manager-policy-reload b/policy/security-manager-policy-reload
+index 274c49c..a883048 100755
+--- a/policy/security-manager-policy-reload
++++ b/policy/security-manager-policy-reload
+@@ -59,6 +59,9 @@ do
+ cyad --set-policy --bucket=MANIFESTS --client="$client" --user="*" --privilege="*" --type=ALLOW
+ done
+
++# PipeWire needs to get access to dbus
++cyad --set-policy --bucket=MANIFESTS --client="System::Pipewire" --user="*" --privilege="http://tizen.org/privilege/internal/dbus" --type=ALLOW
++
+ # Load privilege-group mappings
+ (
+ echo "BEGIN;"
+--
+2.23.0.rc1
+
diff --git a/meta-pipewire/recipes-security/security-manager/security-manager_%.bbappend b/meta-pipewire/recipes-security/security-manager/security-manager_%.bbappend
index 319a27d6..97d01822 100644
--- a/meta-pipewire/recipes-security/security-manager/security-manager_%.bbappend
+++ b/meta-pipewire/recipes-security/security-manager/security-manager_%.bbappend
@@ -1,2 +1,5 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/security-manager:"
-SRC_URI += "file://0001-Adapt-smack-rules-to-allow-connections-to-pipewire.patch"
+SRC_URI += "\
+ file://0001-Adapt-smack-rules-to-allow-connections-to-pipewire.patch \
+ file://0002-Grant-dbus-privilege-to-pipewire.patch \
+ "