The nonce-tcp transport is unusable with dbus-daemon configured to run as a specific user
To reproduce
Steps to reproduce the behavior:
- Ensure the nonce-tcp transport is enabled for system bus
- Ensure the system bus runs as a specific user (usually "messagebus")
- Try to connect to the bus over the nonce-tcp transport
Expected result
Connection succeeds.
Actual result
Connection hangs, dbus-daemon CPU utilization keeps on 100%.
Additional context
The nonce file is created before _dbus_change_to_daemon_user is called and so it is not readable to the daemon itself at the time a connection attempt occurs.