summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brewer <ben.brewer@codethink.co.uk>2012-10-09 15:34:15 +0000
committerPete Fotheringham <pete.fotheringham@codethink.co.uk>2012-12-13 11:02:27 +0000
commit6caef16d9080761c1e88aea37e2d799dea082c82 (patch)
treeb050c78f14b655ee3c32177f6c879b0688fd4308
parente15b50a983368e461a69ea8f058a9490943ca7fa (diff)
downloadbluez-6caef16d9080761c1e88aea37e2d799dea082c82.tar.gz
Added bluez.conf to morph file.
-rw-r--r--bluez.conf14
-rw-r--r--bluez.morph3
2 files changed, 16 insertions, 1 deletions
diff --git a/bluez.conf b/bluez.conf
new file mode 100644
index 000000000..84a12ad3f
--- /dev/null
+++ b/bluez.conf
@@ -0,0 +1,14 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <policy user="root">
+ <allow own="org.bluez"/>
+ <allow send_destination="org.bluez"/>
+ </policy>
+ <policy at_console="true">
+ <allow send_destination="org.bluez"/>
+ </policy>
+ <policy context="default">
+ <deny send_destination="org.bluez"/>
+ </policy>
+</busconfig>
diff --git a/bluez.morph b/bluez.morph
index ce9fcb5ff..e078f49a9 100644
--- a/bluez.morph
+++ b/bluez.morph
@@ -12,6 +12,7 @@
"install -m755 test/simple-agent \"$DESTDIR/usr/bin\"",
"install -m755 test/simple-service \"$DESTDIR/usr/bin\"",
"install -m755 test/monitor-bluetooth \"$DESTDIR/usr/bin\"",
- "install -m755 test/list-devices \"$DESTDIR/usr/bin/list-bluetooth-devices\""
+ "install -m755 test/list-devices \"$DESTDIR/usr/bin/list-bluetooth-devices\"",
+ "install -m664 bluez.conf \"$DESTDIR/etc/dbus-1/system.d\""
]
}