From: Simon McVittie Date: Thu, 12 Apr 2018 12:57:00 +0000 (+0100) Subject: dbus-daemon(1): Say that non-local TCP is insecure X-Git-Tag: dbus-1.12.8~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bd0256f32c62c3eb5b5a2bff2bee975f0e1e36d;p=thirdparty%2Fdbus.git dbus-daemon(1): Say that non-local TCP is insecure With some fairly reasonable threat models (active or passive local attacker able to eavesdrop on the network link, confidential information being transferred via D-Bus), secure authentication is insufficient to make this transport secure: it does not protect confidentiality or integrity either. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=106004 Signed-off-by: Simon McVittie Reviewed-by: Ralf Habacker Reviewed-by: Philip Withnall (cherry picked from commit 2513f84db68a9edad8558806b777ed6c284016b9) --- diff --git a/doc/dbus-daemon.1.xml.in b/doc/dbus-daemon.1.xml.in index b029232d9..891fbfb0f 100644 --- a/doc/dbus-daemon.1.xml.in +++ b/doc/dbus-daemon.1.xml.in @@ -148,8 +148,10 @@ bus. -Set the address to listen on. This option overrides the address -configured in the configuration file. + Set the address to listen on. This option overrides the address + configured in the configuration file via the + <listen> directive. + See the documentation of that directive for more details. @@ -395,6 +397,24 @@ effect unless the ANONYMOUS mechanism has also been enabled using the address is in the standard D-Bus format that contains a transport name plus possible parameters/options. +On platforms other than Windows, unix-based + transports (unix, systemd, + launchd) are the default for both the well-known + system bus and the well-known session bus, and are strongly + recommended. + + + On Windows, unix-based transports are not available, + so TCP-based transports must be used. + Similar to remote X11, the tcp and + nonce-tcp transports have no integrity or + confidentiality protection, so they should normally only be + used across the local loopback interface, for example using an + address like tcp:host=127.0.0.1 or + nonce-tcp:host=localhost. In particular, + configuring the well-known system bus or the well-known session + bus to listen on a non-loopback TCP address is insecure. + Example: <listen>unix:path=/tmp/foo</listen>