summaryrefslogtreecommitdiffstats
path: root/meta-pipewire
diff options
context:
space:
mode:
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 \
+ "