summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2014-08-06 22:25:36 +0200
committerWim Taymans <wtaymans@redhat.com>2014-08-06 22:25:36 +0200
commit638eb2e3a0124606200dfa11b185e22d10f20c1d (patch)
tree114d2ccfbaa28f5c1b3a3f2088eee24ad3425c4b /src
parenta6d2b7900a79b54d228141891013c5e360a38a5b (diff)
Add dbus config
Diffstat (limited to 'src')
-rw-r--r--src/org.freedesktop.Headset.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/org.freedesktop.Headset.conf b/src/org.freedesktop.Headset.conf
new file mode 100644
index 0000000..783c2cf
--- /dev/null
+++ b/src/org.freedesktop.Headset.conf
@@ -0,0 +1,23 @@
+<!-- This configuration file specifies the required security policies
+ for Headset daemon to work. -->
+
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+
+ <!-- ../system.conf have denied everything, so we just punch some holes -->
+
+ <policy group="root">
+ <allow own="org.freedesktop.Headset"/>
+ <allow send_destination="org.freedesktop.Headset"/>
+ </policy>
+
+ <policy at_console="true">
+ <allow send_destination="org.freedesktop.Headset"/>
+ </policy>
+
+ <policy context="default">
+ <deny send_destination="org.freedesktop.Headset"/>
+ </policy>
+
+</busconfig>