bluez: Disable printing subsystem rule 6277/head
authorDaniel Engberg <daniel.engberg.lists@pyret.net>
Mon, 11 Jun 2018 23:14:24 +0000 (01:14 +0200)
committerDaniel Engberg <daniel.engberg.lists@pyret.net>
Mon, 11 Jun 2018 23:35:01 +0000 (01:35 +0200)
By default bluez allows the printing subsystem to communicate
via dbus. This refers to the group lp which isn't available
on OpenWrt and makes dbus fail to start.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
utils/bluez/Makefile
utils/bluez/patches/204-no-printing-subsystem.patch [new file with mode: 0644]

index 81deda23d441c80284cfaf35b2c115fa786be729..1c3bcccf6c660afc6e09d589f82040254c3d32b9 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bluez
 PKG_VERSION:=5.49
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/bluetooth/
diff --git a/utils/bluez/patches/204-no-printing-subsystem.patch b/utils/bluez/patches/204-no-printing-subsystem.patch
new file mode 100644 (file)
index 0000000..698fe23
--- /dev/null
@@ -0,0 +1,17 @@
+diff --git a/src/bluetooth.conf b/src/bluetooth.conf
+index 0c0b221..013cf97 100644
+--- a/src/bluetooth.conf
++++ b/src/bluetooth.conf
+@@ -26,10 +26,10 @@
+   </policy>
+   <!-- allow users of lp group (printing subsystem) to 
+-       communicate with bluetoothd -->
++       communicate with bluetoothd
+   <policy group="lp">
+     <allow send_destination="org.bluez"/>
+-  </policy>
++  </policy> -->
+   <policy context="default">
+     <deny send_destination="org.bluez"/>