On bus startup check given auth in config file against supported mechanisms.
authorRalf Habacker <ralf.habacker@freenet.de>
Thu, 2 Feb 2017 10:28:35 +0000 (11:28 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 2 Feb 2017 10:28:35 +0000 (11:28 +0100)
commitb16eb872fb4ba1e9292104be085ed48072a467e5
tree42b2cc79e5885a1badf6306abd21872a836e17c8
parent65e489287a84a05c634342e23bd93c2e9ba52a5a
On bus startup check given auth in config file against supported mechanisms.

With recent code starting dbus-daemon with an unsupported auth mechanism
let dbus-daemon silently ignore this issue. Clients connecting to this
server fails to connect without any descriptive explanation of the
root cause, only the message 'Rejected client connection due to lack
of memory' error is reported in dbus-daemon verbose log, which is disabled
in production environments.

With this patch dbus-daemon checks the supported auth mechanisms on startup
and shuts down with a descriptive error message, which gives admins an
immediate feedback on service startup/restart.

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99622
bus/bus.c
dbus/dbus-auth.c
dbus/dbus-auth.h