summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-09-03 16:30:33 +0300
committerGeorgios Kiagiadakis <george.kiagiadakis@collabora.com>2019-09-03 14:08:16 +0000
commit6ed548d49be95ba0164d380b5e386f36536e6b79 (patch)
treee0e62eeb894eb63975c48a2e39b75b099ab7e524
parentca764441c712804d00562f838a4ef00c881750e9 (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>
-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 \
+ "