[oe-commits] Koen Kooi : bluez4: add less restrictive (and hence less secure) bluetooth dbus config
GIT User account
git at amethyst.openembedded.net
Wed Apr 8 17:26:46 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 6f89098a071d8c1cb87c403a7d2f5f7f3ce14f70
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6f89098a071d8c1cb87c403a7d2f5f7f3ce14f70
Author: Koen Kooi <koen at openembedded.org>
Date: Wed Apr 8 19:21:51 2009 +0200
bluez4: add less restrictive (and hence less secure) bluetooth dbus config
* this makes bluetooth actually work for non-root users and when using ssh/vnc/etc
---
recipes/bluez/bluez4_4.31.bb | 5 ++++-
recipes/bluez/files/bluetooth.conf | 29 ++++++++++++++++-------------
2 files changed, 20 insertions(+), 14 deletions(-)
diff --git a/recipes/bluez/bluez4_4.31.bb b/recipes/bluez/bluez4_4.31.bb
index 15e8b00..fe58426 100644
--- a/recipes/bluez/bluez4_4.31.bb
+++ b/recipes/bluez/bluez4_4.31.bb
@@ -4,12 +4,13 @@ PRIORITY = "optional"
DEPENDS = "gst-plugins-base alsa-lib libusb-compat dbus-glib"
HOMEPAGE = "http://www.bluez.org"
LICENSE = "GPL"
-PR = "r4"
+PR = "r5"
SRC_URI = "\
http://www.kernel.org/pub/linux/bluetooth/bluez-${PV}.tar.gz \
file://fix-dfutool-usb-declaration-mismatch.patch;patch=1 \
file://sbc-thumb.patch;patch=1 \
+ file://bluetooth.conf \
# file://hid2hci_usb_init.patch;patch=1 \
"
S = "${WORKDIR}/bluez-${PV}"
@@ -43,6 +44,8 @@ do_install_append() {
install -m 0644 ${S}/audio/audio.conf ${D}/${sysconfdir}/bluetooth/
install -m 0644 ${S}/network/network.conf ${D}/${sysconfdir}/bluetooth/
install -m 0644 ${S}/input/input.conf ${D}/${sysconfdir}/bluetooth/
+ # at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT
+ install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/
}
PACKAGES =+ "gst-plugin-bluez libasound-module-bluez"
diff --git a/recipes/bluez/files/bluetooth.conf b/recipes/bluez/files/bluetooth.conf
index 8720847..1b357ea 100644
--- a/recipes/bluez/files/bluetooth.conf
+++ b/recipes/bluez/files/bluetooth.conf
@@ -1,13 +1,16 @@
-#
-# additional cards for /etc/pcmcia/bluetooth.conf
-# Note for OE: This file is _appended_ to the stock
-# bluetooth.conf in bluez-utils, so no need to duplicate
-# entries for individual cards.
-#
-card "CSR BT01x0M Bluetooth CF Card"
- version "Bluetooth BT0100M", "", ""
- bind "serial_cs" class "bluetooth"
-
-card "Socket Bluetooth CF Card Rev. G"
- manfid 0x0104, 0x0096
- bind "serial_cs" class "bluetooth"
+<!-- This configuration file specifies the required security policies
+ for Bluetooth core 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>
+ <allow own="org.bluez"/>
+ <allow send_destination="org.bluez"/>
+ <allow send_interface="org.bluez.Agent"/>
+ </policy>
+
+</busconfig>
More information about the Openembedded-commits
mailing list