diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:29:32 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:29:32 +0200 |
commit | 6b4c82f4657bdb56e6b7a56651d6d4bb91a35b8f (patch) | |
tree | 814ad3da280833de03535ca04cf5068da1d31822 /meta-eca/recipes-connectivity/bluez5/files | |
download | meta-eca-daisy-enea.tar.gz |
initial commit for Enea Linux 4.0daisy-enea
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta-eca/recipes-connectivity/bluez5/files')
-rw-r--r-- | meta-eca/recipes-connectivity/bluez5/files/bluetooth.conf | 37 | ||||
-rw-r--r-- | meta-eca/recipes-connectivity/bluez5/files/fix-udev-paths.patch | 35 |
2 files changed, 72 insertions, 0 deletions
diff --git a/meta-eca/recipes-connectivity/bluez5/files/bluetooth.conf b/meta-eca/recipes-connectivity/bluez5/files/bluetooth.conf new file mode 100644 index 0000000..0495200 --- /dev/null +++ b/meta-eca/recipes-connectivity/bluez5/files/bluetooth.conf | |||
@@ -0,0 +1,37 @@ | |||
1 | <!-- This configuration file specifies the required security policies | ||
2 | for Bluetooth core daemon to work. --> | ||
3 | |||
4 | <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" | ||
5 | "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> | ||
6 | <busconfig> | ||
7 | |||
8 | <!-- ../system.conf have denied everything, so we just punch some holes --> | ||
9 | |||
10 | <policy user="root"> | ||
11 | <allow own="org.bluez"/> | ||
12 | <allow send_destination="org.bluez"/> | ||
13 | <allow send_interface="org.bluez.Agent1"/> | ||
14 | <allow send_interface="org.bluez.MediaEndpoint1"/> | ||
15 | <allow send_interface="org.bluez.MediaPlayer1"/> | ||
16 | <allow send_interface="org.bluez.ThermometerWatcher1"/> | ||
17 | <allow send_interface="org.bluez.AlertAgent1"/> | ||
18 | <allow send_interface="org.bluez.Profile1"/> | ||
19 | <allow send_interface="org.bluez.HeartRateWatcher1"/> | ||
20 | <allow send_interface="org.bluez.CyclingSpeedWatcher1"/> | ||
21 | </policy> | ||
22 | |||
23 | <policy at_console="true"> | ||
24 | <allow send_destination="org.bluez"/> | ||
25 | </policy> | ||
26 | |||
27 | <!-- allow users of lp group (printing subsystem) to | ||
28 | communicate with bluetoothd --> | ||
29 | <policy group="lp"> | ||
30 | <allow send_destination="org.bluez"/> | ||
31 | </policy> | ||
32 | |||
33 | <policy context="default"> | ||
34 | <deny send_destination="org.bluez"/> | ||
35 | </policy> | ||
36 | |||
37 | </busconfig> | ||
diff --git a/meta-eca/recipes-connectivity/bluez5/files/fix-udev-paths.patch b/meta-eca/recipes-connectivity/bluez5/files/fix-udev-paths.patch new file mode 100644 index 0000000..37362f5 --- /dev/null +++ b/meta-eca/recipes-connectivity/bluez5/files/fix-udev-paths.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | Add udevdir/udevrulesdir options | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | Signed-off-by: Constantin Musca <constantinx.musca@intel.com> | ||
5 | Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> | ||
6 | |||
7 | Index: bluez-5.0/Makefile.am | ||
8 | =================================================================== | ||
9 | --- bluez-5.0.orig/Makefile.am 2012-12-24 19:46:54.000000000 +0200 | ||
10 | +++ bluez-5.0/Makefile.am 2013-01-30 14:33:15.760615474 +0200 | ||
11 | @@ -175,7 +175,7 @@ | ||
12 | include Makefile.obexd | ||
13 | |||
14 | if HID2HCI | ||
15 | -rulesdir = @UDEV_DIR@/rules.d | ||
16 | +rulesdir = @UDEV_RULES_DIR@ | ||
17 | |||
18 | rules_DATA = tools/97-hid2hci.rules | ||
19 | |||
20 | Index: bluez-5.0/configure.ac | ||
21 | =================================================================== | ||
22 | --- bluez-5.0.orig/configure.ac 2012-12-24 19:46:54.000000000 +0200 | ||
23 | +++ bluez-5.0/configure.ac 2013-01-30 14:34:59.068613895 +0200 | ||
24 | @@ -160,6 +160,11 @@ | ||
25 | AC_SUBST(UDEV_DIR, [${path_udevdir}]) | ||
26 | fi | ||
27 | |||
28 | +AC_ARG_WITH([udevrulesdir], | ||
29 | + AS_HELP_STRING([--with-udevrulesdir=DIR], [udev rules directory]), | ||
30 | + [], [with_udevrulesdir=/lib/udev/rules.d]) | ||
31 | +AC_SUBST([UDEV_RULES_DIR], [$with_udevrulesdir]) | ||
32 | + | ||
33 | AM_CONDITIONAL(HID2HCI, test "${enable_tools}" != "no" && | ||
34 | test "${enable_udev}" != "no" && test "${enable_usb}" != "no") | ||
35 | |||