Patchwork [2/2] dbus: ensure dbus user is created

login
register
mail settings
Submitter Samuel Martin
Date Feb. 4, 2014, 11:46 a.m.
Message ID <1391514379-7431-2-git-send-email-s.martin49@gmail.com>
Download mbox | patch
Permalink /patch/316558/
State Accepted
Commit 55d1c953dc17a13e848951da88f45c673eafdda9
Headers show

Comments

Samuel Martin - Feb. 4, 2014, 11:46 a.m.
Since we are changing the default dbus user, make sure this user is
consistently created.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
 package/dbus/dbus.mk | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index 74e2041..e8b3da7 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -30,6 +30,10 @@  DBUS_CONF_OPT = --with-dbus-user=dbus \
 		--with-system-socket=/var/run/dbus/system_bus_socket \
 		--with-system-pid-file=/var/run/messagebus.pid
 
+define DBUS_USERS
+	dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user
+endef
+
 ifeq ($(BR2_PREFER_STATIC_LIB),y)
 DBUS_CONF_OPT += LIBS='-lpthread'
 endif