[Buildroot] [git commit branch/2020.02.x] package/dbus: fix group and mode for the launcher
From: Peter Korsgaard <peter@korsgaard.com>
Date: 2020-07-12 20:21:10
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Peter Korsgaard <peter@korsgaard.com>
Date: 2020-07-12 20:21:10
Subsystem:
the rest · Maintainer:
Linus Torvalds
commit: https://git.buildroot.net/buildroot/commit/?id=ceedbee8f1f37ffd04f0ed0cdc29ca2f3b1a9a97 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.02.x The D-Bus installation process installs dbus-daemon-launch-helper as follows: chown root:$(DBUS_USER) $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper$(EXEEXT); \ chmod 4750 $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper$(EXEEXT); \ And when the installation does not take place as root (like is the case in the context of Buildroot), it prints: echo "Not installing $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper binary setuid!"; \ echo "You'll need to manually set permissions to root:$(DBUS_USER) and permissions 4750"; \ So let's adjust the installation logic of dbus-daemon-launch-helper to match these requirements. Signed-off-by: Norbert Lange <redacted> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 7ac245a0cb76f270b28860936245ca1abba0804a) Signed-off-by: Peter Korsgaard <peter@korsgaard.com> --- package/dbus/dbus.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index a4043864d1..bb9f17a5e0 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk@@ -11,7 +11,7 @@ DBUS_LICENSE_FILES = COPYING DBUS_INSTALL_STAGING = YES define DBUS_PERMISSIONS - /usr/libexec/dbus-daemon-launch-helper f 4755 0 0 - - - - - + /usr/libexec/dbus-daemon-launch-helper f 4750 0 dbus - - - - - endef define DBUS_USERS