Commit Graph

6 Commits

Author SHA1 Message Date
Bjørn Mork
2749f0a3af dbus: fix ujail configuration
Running dbus as an unprivileged user fails for two reasons: Cannot write pid file
and cannot read the installed policies:

 Tue Aug  5 17:12:41 2025 daemon.info dbus-daemon[8568]: jail: exec-ing /usr/bin/dbus-daemon
 Tue Aug  5 17:12:41 2025 daemon.info dbus-daemon[8585]: Encountered error 'Failed to open "/etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf": Permission denied' while parsing '/etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf'
 Tue Aug  5 17:12:41 2025 daemon.err dbus-daemon[8568]: dbus-daemon[8585]: Encountered error 'Failed to open "/etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf": Permission denied' while parsing '/etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf'
 Tue Aug  5 17:12:41 2025 daemon.warn dbus-daemon[8585]: Failed to start message bus: Failed to open "/var/run/dbus.pid": Permission denied
 Tue Aug  5 17:12:41 2025 daemon.err dbus-daemon[8568]: dbus-daemon[8585]: Failed to start message bus: Failed to open "/var/run/dbus.pid": Permission denied
 Tue Aug  5 17:12:41 2025 daemon.info dbus-daemon[8568]: jail: jail (8585) exited with exit: 1

Fix by dropping the pid file when running unprivileged and changing the owner
of the installed policies.

Fixes: f238d6dd09 ("dbus: run as regular user rather than as root")
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2025-08-14 10:58:04 +02:00
John Audia
f238d6dd09 dbus: run as regular user rather than as root
Running as a dedicated dbus users is better from both a security and an
isolation perspective than running as root.

Build system: x86/64
Build-tested: x86/64-glibc
Run-tested: x86/64-glibc

Signed-off-by: John Audia <therealgraysky@proton.me>
2025-07-31 10:59:55 +02:00
Florian Eckert
fe96ad4f66 dbus: refactoring init for using procd
The dbus service has not yet been started via the procd. This commit
changes this.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-12-13 09:54:26 +01:00
Rosen Penev
c73fd179e4 dbus: update to 1.13.12
Ran scripts through shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-18 18:09:07 -07:00
Daniel Engberg
113a34788d dbus: Update to 1.12.8
Update dbus to 1.12.8

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2018-06-12 01:08:09 +02:00
Steven Barth
14003935f1 dbus: adopt here
Signed-off-by: Steven Barth <steven@midlink.org>
2014-07-18 11:03:55 +02:00