Patchwork [2/2] dbus: fix permissions of the installed launch helper

login
register
mail settings
Submitter Gary Coulbourne
Date Dec. 19, 2012, 6:43 p.m.
Message ID <1355942638-27288-3-git-send-email-bear@bears.org>
Download mbox | patch
Permalink /patch/207508/
State Superseded
Headers show

Comments

Gary Coulbourne - Dec. 19, 2012, 6:43 p.m.
DBus uses a suid root launch helper to automatically start and stop services.  This does not
get installed properly, and requires fixup after installation to have the correct permissions.

Signed-off-by: Gary Coulbourne <bear@bears.org>
---
 package/dbus/dbus.mk |    4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index 694cbfe..f7f6d6d 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -87,6 +87,10 @@  HOST_DBUS_CONF_OPT = \
 # dbus for the host
 DBUS_HOST_INTROSPECT=$(HOST_DBUS_DIR)/introspect.xml
 
+define DBUS_PERMISSIONS
+/usr/libexec/dbus-daemon-launch-helper f 4750 0 81 - - - - -
+endef
+
 HOST_DBUS_GEN_INTROSPECT = \
 	$(HOST_DIR)/usr/bin/dbus-daemon --introspect > $(DBUS_HOST_INTROSPECT)