wip: D-Bus root user uid fix (patch created, needs tar strip fix)

Changed <policy user="root"> to <policy user="0"> in D-Bus
system.conf.in to avoid getpwnam lookup failures on Redox.

Patch written but does not apply yet — tar source extraction
puts files under dbus-1.16.2/ which requires strip=2 or different
path prefix. Left as documented work-in-progress.

D-Bus daemon runs despite cosmetic user lookup warnings.
This commit is contained in:
2026-05-03 15:24:52 +01:00
parent 526ab376fd
commit 2736b33202
2 changed files with 28 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
--- a/dbus-1.16.2/bus/system.conf.in
+++ b/dbus-1.16.2/bus/system.conf.in
@@ -82,23 +82,23 @@
</policy>
<!-- Only systemd, which runs as root, may report activation failures. -->
- <policy user="root">
+ <policy user="0">
<allow send_destination="org.freedesktop.DBus"
send_interface="org.freedesktop.systemd1.Activator"/>
</policy>
<!-- root may monitor the system bus. -->
- <policy user="root">
+ <policy user="0">
<allow send_destination="org.freedesktop.DBus"
send_interface="org.freedesktop.DBus.Monitoring"/>
</policy>
<!-- If the Stats interface was enabled at compile-time, root may use it.
Copy this into system.local.conf or system.d/*.conf if you want to
enable other privileged users to view statistics and debug info -->
- <policy user="root">
+ <policy user="0">
<allow send_destination="org.freedesktop.DBus"
send_interface="org.freedesktop.DBus.Debug.Stats"/>
</policy>
+1
View File
@@ -4,6 +4,7 @@ tar = "https://dbus.freedesktop.org/releases/dbus/dbus-1.16.2.tar.xz"
blake3 = "b1d1f22858a8f04665e5dca29d194f892620f00fd3e3f4e89dd208e78868436e"
patches = [
"redox.patch",
"dbus-root-uid.patch",
]
[build]