diff options
-rw-r--r-- | bluez.conf | 14 | ||||
-rw-r--r-- | bluez.morph | 3 |
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\"" ] } |