]> git.ipfire.org Git - thirdparty/dbus.git/log
thirdparty/dbus.git
6 years agoNEWS: Mark dbus-1.8 as EOL dbus-1.8
Simon McVittie [Tue, 4 Dec 2018 20:53:11 +0000 (20:53 +0000)] 
NEWS: Mark dbus-1.8 as EOL

Signed-off-by: Simon McVittie <smcv@collabora.com>
8 years agoDisable some mostly cosmetic compiler warnings
Simon McVittie [Thu, 16 Feb 2017 16:29:33 +0000 (16:29 +0000)] 
Disable some mostly cosmetic compiler warnings

We are not going to fix compiler warnings in a security-fix-only
branch: it's too much regression risk for too little benefit. If they
demonstrate a security bug, then we'll backport the fix for the
security bug.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
8 years agoUpdate NEWS for 1.8.x
Simon McVittie [Thu, 16 Feb 2017 16:27:58 +0000 (16:27 +0000)] 
Update NEWS for 1.8.x

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
8 years agoactivation test: Fix time-of-check/time-of-use bug waiting to happen
Simon McVittie [Wed, 15 Feb 2017 17:24:14 +0000 (17:24 +0000)] 
activation test: Fix time-of-check/time-of-use bug waiting to happen

Creating a directory is atomic, stat'ing it to see whether to remove
it is very much not.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99828
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
8 years agoChange _dbus_create_directory to fail for existing directories
Simon McVittie [Wed, 15 Feb 2017 16:32:04 +0000 (16:32 +0000)] 
Change _dbus_create_directory to fail for existing directories

If we don't trap EEXIST and its Windows equivalent, we are unable to
detect the situation where we create an ostensibly unique
subdirectory in a shared /tmp, but an attacker has already created it.
This affects dbus-nonce (the nonce-tcp transport) and the activation
reload test.

Add a new _dbus_ensure_directory() for the one case where we want it to
succeed even on EEXIST: the DBUS_COOKIE_SHA1 keyring, which we know
we are creating in our own trusted "official" $HOME. In the new
transient service support on Bug #99825, ensure_owned_directory()
would need the same treatment.

We are not treating this as a serious security problem, because the
nonce-tcp transport is rarely enabled on Unix and there are multiple
mitigations.

The nonce-tcp transport creates a new unique file with O_EXCL and 0600
(private to user) permissions, then overwrites the requested filename
via atomic-overwrite, so the worst that could happen there is that an
attacker could place a symbolic link matching the name of a directory
we are going to create, causing a dbus-daemon configured for nonce-tcp
to traverse the symlink and atomically overwrite a file named "nonce"
in a directory of the attacker's choice, with new random contents that
are not known to the attacker. This seems unlikely to be exploitable
for anything worse than denial of service in practice. In mainline
Linux since 3.6, this attack is also defeated by the
fs.protected_symlinks sysctl, which many distributions enable by default.

The activation reload test suffers from a classic symlink attack
due to time-of-check/time-of-use errors in its implementation, but as
part of the developer-only "embedded tests" that are only intended
to be run on a trusted machine, it is not treated as security-sensitive.
That code path will be fixed in a subsequent commit.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99828
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
9 years ago1.8.22 dbus-1.8.22
Simon McVittie [Mon, 10 Oct 2016 09:22:01 +0000 (10:22 +0100)] 
1.8.22

9 years agoDisable deprecation warnings for stable branch
Simon McVittie [Fri, 7 Oct 2016 20:38:05 +0000 (21:38 +0100)] 
Disable deprecation warnings for stable branch

We're not going to replace deprecated functions here.

Signed-off-by: Simon McVittie <smcv@debian.org>
Reviewed-by: Colin Walters <walters@verbum.org>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98157

9 years agodbus_activation_systemd_failure: do not use non-literal format string
Simon McVittie [Fri, 7 Oct 2016 18:13:01 +0000 (19:13 +0100)] 
dbus_activation_systemd_failure: do not use non-literal format string

In principle this could lead to arbitrary memory overwrite via
a format string attack in the message received from systemd,
resulting in arbitrary code execution.

This is not believed to be an exploitable security vulnerability on the
system bus in practice: it can only be exploited by the owner of the
org.freedesktop.systemd1 bus name, which is restricted to uid 0, so
if systemd is attacker-controlled then the system is already doomed.
Similarly, if a systemd system unit mentioned in the activation failure
message has an attacker-controlled name, then the attacker likely already
has sufficient access to execute arbitrary code as root in any case.

However, prior to dbus 1.8.16 and 1.9.10, due to a missing check for
systemd's identity, unprivileged processes could forge activation
failure messages which would have gone through this code path.
We thought at the time that this was a denial of service vulnerability
(CVE-2015-0245); this bug means that it was in fact potentially an
arbitrary code execution vulnerability.

Bug found using -Wsuggest-attribute=format and -Wformat-security.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98157

10 years ago1.8.21
Simon McVittie [Tue, 21 Jul 2015 20:13:53 +0000 (21:13 +0100)] 
1.8.21

10 years agodbus-1.8.20 dbus-1.8.20
Simon McVittie [Tue, 21 Jul 2015 16:32:17 +0000 (17:32 +0100)] 
dbus-1.8.20

10 years agoNEWS for 1.8.x
Simon McVittie [Tue, 21 Jul 2015 16:19:25 +0000 (17:19 +0100)] 
NEWS for 1.8.x

10 years agodbus-monitor: disable automatic handling of o.fd.Peer messages
Simon McVittie [Fri, 3 Jul 2015 12:50:04 +0000 (13:50 +0100)] 
dbus-monitor: disable automatic handling of o.fd.Peer messages

A normal DBusConnection will automatically reply to o.fd.Peer
messages such as Ping. We don't want this: we'll
confuse everyone else by replying to messages that weren't
intended for us.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90952
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
(cherry picked from commit d9ee040d0bff2b421bca80c2339dcd9347d906db,
commit message adjusted to describe the impact in versions < 1.9)
Conflicts:
tools/dbus-monitor.c

10 years ago.gitignore: ignore /test-driver, generated by recent Automake
Simon McVittie [Mon, 3 Mar 2014 15:59:10 +0000 (15:59 +0000)] 
.gitignore: ignore /test-driver, generated by recent Automake

(cherry picked from commit 1895a8ee5b0e3813b571e9db3528611802ea7f7e)

10 years agoNEWS
Simon McVittie [Wed, 17 Jun 2015 19:40:51 +0000 (20:40 +0100)] 
NEWS

10 years agoFix memleak in GetConnectionCredentials handler
Jacek Bukarewicz [Wed, 17 Jun 2015 17:53:41 +0000 (18:53 +0100)] 
Fix memleak in GetConnectionCredentials handler

Reply message was not unreferenced when GetConnectionCredentials
handler was successful.

Signed-off-by: Jacek Bukarewicz <j.bukarewicz@samsung.com>
[smcv: changed bus_message_unref() to dbus_message_unref()]
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=91008

10 years agoadd a missing change, fix some bug numbers
Simon McVittie [Thu, 14 May 2015 13:43:53 +0000 (14:43 +0100)] 
add a missing change, fix some bug numbers

10 years agostart towards 1.8.20
Simon McVittie [Thu, 14 May 2015 13:30:08 +0000 (14:30 +0100)] 
start towards 1.8.20

10 years ago1.8.18 dbus-1.8.18
Simon McVittie [Thu, 14 May 2015 12:28:38 +0000 (13:28 +0100)] 
1.8.18

10 years agoSecurity hardening: force EXTERNAL auth in session.conf on Unix
Simon McVittie [Tue, 12 May 2015 10:54:50 +0000 (11:54 +0100)] 
Security hardening: force EXTERNAL auth in session.conf on Unix

DBUS_COOKIE_SHA1 is dependent on unguessable strings, i.e.
indirectly dependent on high-quality pseudo-random numbers
whereas EXTERNAL authentication (credentials-passing)
is mediated by the kernel and cannot be faked.

On Windows, EXTERNAL authentication is not available,
so we continue to use the hard-coded default (all
authentication mechanisms are tried).

Users of tcp: or nonce-tcp: on Unix will have to comment
this out, but they would have had to use a special
configuration anyway (to set the listening address),
and the tcp: and nonce-tcp: transports are inherently
insecure unless special steps are taken to have them
restricted to a VPN or SSH tunnelling.

Users of obscure Unix platforms (those that trigger
the warning "Socket credentials not supported on this Unix OS"
when compiling dbus-sysdeps-unix.c) might also have to
comment this out, or preferably provide a tested patch
to enable credentials-passing on that OS.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90414

10 years agoreader_init: Initialize all fields of struct DBusTypeReader (CID 54754, 54772, 54773).
Ralf Habacker [Wed, 6 May 2015 10:09:19 +0000 (12:09 +0200)] 
reader_init: Initialize all fields of struct DBusTypeReader (CID 54754, 54772, 54773).

This patch is based on the fix for 'Field reader.array_len_offset is
uninitialized'

Reported by Coverity: CID 54754, 54772, 54773: Uninitialized scalar
variable (UNINIT)

[smcv: also re-order how the class is set when we recurse, so that
the sub-reader's class doesn't end up NULL]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021

10 years agoRevert "reader_init: Initialize all fields of struct DBusTypeReader (CID 54754, 54772...
Simon McVittie [Fri, 8 May 2015 14:36:19 +0000 (15:36 +0100)] 
Revert "reader_init: Initialize all fields of struct DBusTypeReader (CID 54754, 54772, 54773)."

This reverts commit 21a7873f20145d561c2de8f084d98200a8de2c83.

This appears to cause a segfault, presumably resulting from something
assuming that reader_init() would not reinitialize all fields:

 #0  0x00007ffff7b74777 in _dbus_type_reader_get_current_type (reader=reader@entry=0x7fffffffda50) at .../dbus/dbus-marshal-recursive.c:791
 #1  0x00007ffff7b719d0 in _dbus_header_cache_check (header=<optimized out>)
    at .../dbus/dbus-marshal-header.c:209
 #2  0x00007ffff7b719d0 in _dbus_header_cache_check (header=header@entry=0x624658, field=field@entry=6) at .../dbus/dbus-marshal-header.c:250
 #3  0x00007ffff7b72884 in _dbus_header_get_field_basic (header=header@entry=0x624658, field=field@entry=6, type=type@entry=115, value=value@entry=0x7fffffffdbd8) at .../dbus/dbus-marshal-header.c:1365
 #4  0x00007ffff7b7d8c2 in dbus_message_get_destination (message=message@entry=0x624650) at .../dbus/dbus-message.c:3457
 #5  0x00007ffff7b67be6 in _dbus_connection_send_preallocated_unlocked_no_update (connection=connection@entry=0x6236d0, preallocated=0x0,
    preallocated@entry=0x6234c0, message=message@entry=0x624650, client_serial=client_serial@entry=0x7fffffffdcbc)
    at .../dbus/dbus-connection.c:2017

10 years agoreader_init: Initialize all fields of struct DBusTypeReader (CID 54754, 54772, 54773).
Ralf Habacker [Wed, 6 May 2015 10:09:19 +0000 (12:09 +0200)] 
reader_init: Initialize all fields of struct DBusTypeReader (CID 54754, 54772, 54773).

This patch is based on the fix for 'Field reader.array_len_offset is uninitialized'

Reported by Coverity: CID 54754, 54772, 54773: Uninitialized scalar variable (UNINIT)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
10 years agodo_check_nonce: Fix of calling _dbus_string_append_len without checking return value...
Ralf Habacker [Wed, 6 May 2015 07:18:20 +0000 (09:18 +0200)] 
do_check_nonce: Fix of calling _dbus_string_append_len without checking return value (CID 54720).

Reported by Coverity: CID: Unchecked return value (CHECKED_RETURN)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
10 years agodbus_message_demarshal: Fix calling _dbus_string_append_len without checking return...
Ralf Habacker [Wed, 6 May 2015 06:25:20 +0000 (08:25 +0200)] 
dbus_message_demarshal: Fix calling _dbus_string_append_len without checking return value (CID 54690).

Reported by Coverity: CID 54690: Unchecked return value (CHECKED_RETURN)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
10 years agoNEWS for 1.8 branch
Simon McVittie [Tue, 5 May 2015 11:43:47 +0000 (12:43 +0100)] 
NEWS for 1.8 branch

10 years agoDBusCounter: add a mutex to protect the refcount and notify function
Adrian Szyndela [Tue, 5 May 2015 11:30:30 +0000 (12:30 +0100)] 
DBusCounter: add a mutex to protect the refcount and notify function

The overall problem here is that DBusCounter is indirectly linked
to a DBusConnection, but is not actually guaranteed to be protected by
that connection's mutex; and a DBusMessage can carry a reference to the
DBusCounter, resulting in freeing that DBusMessage having an effect on
the DBusCounter.

Making the refcount atomic would not be a sufficient fix, since it would
not protect the notify function: _dbus_counter_notify() could be called
indirectly by dbus_message_unref(), in an arbitrary thread that does not
hold the DBusConnection's lock, at the same time that the holder
of the DBusConnection lock calls _dbus_transport_set_max_message_size().

[smcv: added commit message]
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89297
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
10 years agoextend lock's range in live_messages_notify()
Adrian Szyndela [Tue, 5 May 2015 11:27:15 +0000 (12:27 +0100)] 
extend lock's range in live_messages_notify()

The other code paths that ref or unref a transport are protected by
the DBusConnection's lock. This function already used that lock,
but for a narrower scope than the refcount manipulation.

live_messages_notify() could be triggered by unreffing messages
that originated from the same connection in a different thread.

[smcv: added commit message]
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90312
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
10 years agodbus_server_set_auth_mechanisms: Fix returning without unlocking server->mutex->lock...
Ralf Habacker [Wed, 22 Apr 2015 12:47:08 +0000 (14:47 +0200)] 
dbus_server_set_auth_mechanisms: Fix returning without unlocking server->mutex->lock (CID 54749).

Reported by Coverity: CID 54749: Missing unlock (LOCK)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
10 years agoAdd manual tcp test case.
Ralf Habacker [Wed, 28 Jan 2015 21:44:16 +0000 (22:44 +0100)] 
Add manual tcp test case.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=87999
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
(cherry picked from commit fa1ada44eabd62b46b89c7be22bfce6d595d8dac)

Conflicts:
cmake/test/CMakeLists.txt
test/Makefile.am

10 years agoFix 'dbus connection referencing issue in test-relay'.
Ralf Habacker [Mon, 13 Apr 2015 13:04:20 +0000 (15:04 +0200)] 
Fix 'dbus connection referencing issue in test-relay'.

The watches added on connection setup should be removed on shutdown.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90005
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
10 years agoAdd newline to verbose output in _dbus_trace_ref().
Ralf Habacker [Fri, 10 Apr 2015 10:38:59 +0000 (12:38 +0200)] 
Add newline to verbose output in _dbus_trace_ref().

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90004
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
10 years agoFix 'dbus-daemon on Windows: Failed to bind socket "localhost:xxxx": Address already...
Ralf Habacker [Fri, 30 Jan 2015 19:19:01 +0000 (20:19 +0100)] 
Fix 'dbus-daemon on Windows: Failed to bind socket "localhost:xxxx": Address already in use'.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=87999
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
(cherry picked from commit 795ea3007ed211e50249e2f886023a8701dd76a9)

10 years ago1.8.17
Simon McVittie [Thu, 5 Feb 2015 14:54:10 +0000 (14:54 +0000)] 
1.8.17

10 years agoPrepare embargoed 1.8.16 release dbus-1.8.16
Simon McVittie [Wed, 4 Feb 2015 16:51:10 +0000 (16:51 +0000)] 
Prepare embargoed 1.8.16 release

10 years agoCVE-2015-0245: prevent forged ActivationFailure from non-root processes
Simon McVittie [Mon, 26 Jan 2015 20:09:56 +0000 (20:09 +0000)] 
CVE-2015-0245: prevent forged ActivationFailure from non-root processes

Without either this rule or better checking in dbus-daemon, non-systemd
processes can make dbus-daemon think systemd failed to activate a system
service, resulting in an error reply back to the requester.

This is redundant with the fix in the C code (which I consider to be
the real solution), but is likely to be easier to backport.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88811
Reviewed-by: Alban Crequy
Reviewed-by: David King
Reviewed-by: Philip Withnall
10 years agoNEWS for 1.8 branch
Simon McVittie [Wed, 4 Feb 2015 16:44:31 +0000 (16:44 +0000)] 
NEWS for 1.8 branch

10 years ago1.8.15
Simon McVittie [Mon, 5 Jan 2015 14:57:26 +0000 (14:57 +0000)] 
1.8.15

10 years agoMerge tag 'dbus-1.8.14' into dbus-1.8
Simon McVittie [Mon, 5 Jan 2015 14:56:44 +0000 (14:56 +0000)] 
Merge tag 'dbus-1.8.14' into dbus-1.8

dbus-1.8.14

10 years agoWindows cmake cross compile fix
Ralf Habacker [Sat, 3 Jan 2015 19:36:31 +0000 (20:36 +0100)] 
Windows cmake cross compile fix

We need to include 'test' subdir in any case not only when using glib.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88009
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
10 years agoFix of 'dbus-daemon can only handle 64 simultaneous connections on Windows'.
Ralf Habacker [Mon, 27 Jan 2014 10:58:37 +0000 (11:58 +0100)] 
Fix of 'dbus-daemon can only handle 64 simultaneous connections on Windows'.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71297
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
10 years agoPrepare release for Monday dbus-1.8.14
Simon McVittie [Thu, 1 Jan 2015 23:42:41 +0000 (23:42 +0000)] 
Prepare release for Monday

10 years agoHardening: only accept Stats function calls at the canonical object path
Simon McVittie [Fri, 19 Dec 2014 18:51:04 +0000 (18:51 +0000)] 
Hardening: only accept Stats function calls at the canonical object path

These function calls are not a privilege escalation risk like
UpdateActivationEnvironment, but they might provide sensitive
information or be enhanced to provide sensitive information
in future, so the default system.conf locks them down to root-only.
Apply the same canonical-object-path hardening as for
UpdateActivationEnvironment.

We do not apply the uid check here because they are less dangerous
than UpdateActivationEnvironment, and because the ability to unlock
these function calls for specific uids is a documented configuration
for developers.

Reviewed-by: Thiago Macieira <thiago@kde.org>
[added missing #include; extended commit message -smcv]

10 years agoAdd a regression test for path-based UpdateActivationEnvironment hardening
Simon McVittie [Fri, 19 Dec 2014 19:17:14 +0000 (19:17 +0000)] 
Add a regression test for path-based UpdateActivationEnvironment hardening

Reviewed-by: Thiago Macieira <thiago@kde.org>
10 years agoHardening: only allow the uid of the dbus-daemon to call UpdateActivationEnvironment
Simon McVittie [Fri, 19 Dec 2014 19:19:00 +0000 (19:19 +0000)] 
Hardening: only allow the uid of the dbus-daemon to call UpdateActivationEnvironment

As with the previous commit, this is probably not actually privilege
escalation due to the use of an activation helper that cleans up its
environment, but let's be extra-careful here.

Reviewed-by: Thiago Macieira <thiago@kde.org>
[adjusted commit message -smcv]

10 years agoHardening: reject UpdateActivationEnvironment on non-canonical path
Simon McVittie [Fri, 19 Dec 2014 18:49:33 +0000 (18:49 +0000)] 
Hardening: reject UpdateActivationEnvironment on non-canonical path

UpdateActivationEnvironment is the one dbus-daemon API call that is
obviously dangerous (it is intended for the session bus),
so the default system.conf does not allow anyone to call it.

It has recently come to the D-Bus maintainers' attention that some
system services incorrectly install D-Bus policy rules that allow
arbitrary method calls to any destination as long as they have a
"safe" object path. This is not actually safe: some system services
that use low-level D-Bus bindings like libdbus, including dbus-daemon
itself, provide the same API on all object paths.

Unauthorized calls to UpdateActivationEnvironment are probably just
resource consumption rather than privilege escalation, because on
the system bus, the modified environment is only used to execute
a setuid wrapper that avoids LD_PRELOAD etc. via normal setuid
handling, and sanitizes its own environment before executing
the real service. However, it's safest to assume the worst and
treat it as a potential privilege escalation.

Accordingly, as a hardening measure to avoid privilege escalation on
systems with these faulty services, stop allowing calls to
("/com/example/Whatever",
"org.freedesktop.DBus.UpdateActivationEnvironment")
and only allow ("/org/freedesktop/DBus",
"org.freedesktop.DBus.UpdateActivationEnvironment").

We deliberately continue to provide read-only APIs like
GetConnectionUnixUser at all object paths, for backwards compatibility.

Reviewed-by: Thiago Macieira <thiago@kde.org>
[adjusted commit message to note that this is probably only DoS -smcv]

10 years agoFix GetExtendedTcpTable crash on vista sp0.
Илья А. Ткаченко [Tue, 23 Dec 2014 08:45:24 +0000 (11:45 +0300)] 
Fix GetExtendedTcpTable crash on vista sp0.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77008
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
10 years ago1.8.13
Simon McVittie [Mon, 24 Nov 2014 22:52:22 +0000 (22:52 +0000)] 
1.8.13

10 years ago1.8.12 dbus-1.8.12
Simon McVittie [Mon, 24 Nov 2014 13:01:40 +0000 (13:01 +0000)] 
1.8.12

10 years agoRevert "config: change default auth_timeout to 5 seconds"
Simon McVittie [Tue, 18 Nov 2014 17:34:11 +0000 (17:34 +0000)] 
Revert "config: change default auth_timeout to 5 seconds"

This reverts commit 54d26df52b6a394bea175651d1d7ad2ab3f87dea.

It appears this change may cause intermittent slow or failed boot,
more commonly on slower/older machines, in at least Mageia and
possibly also Debian. This would indicate that while the system
is under load, system services are not completing authentication
within 5 seconds.

This change was not the main part of fixing CVE-2014-3639, but does
help to mitigate that attack. As such, increasing this timeout makes
the denial of service attack described by CVE-2014-3639 somewhat
more effective: a local user connecting to the system bus repeatedly
from many parallel processes can cause other users' attempts to
connect to take longer.

If your machine boots reliably with the shorter timeout, and
resilience against local denial of service attacks is important
to you, putting this in /etc/dbus-1/system-local.conf
or a file matching /etc/dbus-1/system.d/*.conf can restore
the lower limit:

    <busconfig>
      <limit name="auth_timeout">5000</limit>
    </busconfig>

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=86431

10 years agoLog to syslog when auth_timeout drops an incomplete connection
Simon McVittie [Tue, 18 Nov 2014 12:01:44 +0000 (12:01 +0000)] 
Log to syslog when auth_timeout drops an incomplete connection

This is a symptom of either a denial of service attack, or a
serious performance problem. Either way, sysadmins should know.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=86431

10 years agoREADME, HACKING: add some brief notes on reporting security vulnerabilities
Simon McVittie [Fri, 14 Nov 2014 19:14:13 +0000 (19:14 +0000)] 
README, HACKING: add some brief notes on reporting security vulnerabilities

We now have a private mailing list that can be the security contact.

10 years agoNEWS
Simon McVittie [Fri, 14 Nov 2014 18:58:44 +0000 (18:58 +0000)] 
NEWS

10 years agoSet error when message delivery is denied due to receive rule
Jacek Bukarewicz [Fri, 14 Nov 2014 18:39:38 +0000 (18:39 +0000)] 
Set error when message delivery is denied due to receive rule

This makes bus_context_check_security_policy follow convention of
setting errors if function indicates failure and has error parameter.
Notable implication is that AccessDenied error will be sent if sending message
to addressed recipient is denied due to receive rule. Previously, message
was silently dropped.

This also fixes assertion failure when message is denied at addressed recipient
while sending pending auto activation messages.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=86194

11 years agonext version number will be 1.8.12
Simon McVittie [Mon, 10 Nov 2014 17:09:52 +0000 (17:09 +0000)] 
next version number will be 1.8.12

11 years ago1.8.11
Simon McVittie [Mon, 10 Nov 2014 17:06:44 +0000 (17:06 +0000)] 
1.8.11

11 years agoEmbargoed security release for Monday dbus-1.8.10
Simon McVittie [Thu, 6 Nov 2014 15:39:51 +0000 (15:39 +0000)] 
Embargoed security release for Monday

11 years agoCVE-2014-7824: set fd rlimit to 64k for the system dbus-daemon
Simon McVittie [Tue, 4 Nov 2014 14:41:54 +0000 (14:41 +0000)] 
CVE-2014-7824: set fd rlimit to 64k for the system dbus-daemon

This ensures that our rlimit is actually high enough to avoid the
denial of service described in CVE-2014-3636 part A.
CVE-2014-7824 has been allocated for this incomplete fix.

Restore the original rlimit for activated services, to avoid
them getting undesired higher limits.

(Thanks to Alban Crequy for various adjustments which have been
included in this commit.)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85105
Reviewed-by: Alban Crequy <alban.crequy@collabora.co.uk>
11 years ago1.8.9
Simon McVittie [Tue, 16 Sep 2014 16:47:46 +0000 (17:47 +0100)] 
1.8.9

11 years agoPrepare 1.8.8 (embargoed until tomorrow) dbus-1.8.8
Simon McVittie [Mon, 15 Sep 2014 11:43:04 +0000 (12:43 +0100)] 
Prepare 1.8.8 (embargoed until tomorrow)

11 years ago_dbus_read_socket_with_unix_fds: do not accept extra fds in cmsg padding
Simon McVittie [Tue, 9 Sep 2014 11:44:22 +0000 (12:44 +0100)] 
_dbus_read_socket_with_unix_fds: do not accept extra fds in cmsg padding

This addresses CVE-2014-3635.

If (*n_fds * sizeof (int) % sizeof (size_t)) is nonzero,
then CMSG_SPACE (*n_fds * sizeof (int)) > CMSG_LEN (*n_fds * sizeof (int)
because the SPACE includes padding to a size_t boundary, whereas the LEN
does not. We have to allocate the SPACE. Previously, we told the kernel
that the buffer size we wanted was the SPACE, not the LEN, which meant
it was free to fill the padding with additional fds: on a 64-bit
platform with 32-bit int, that's one extra fd, if *n_fds happens
to be odd.

This meant that a malicious sender could send exactly 1 fd too many,
which would make us fail an assertion if enabled, or overrun a buffer
by 1 fd otherwise.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83622
Reviewed-by: Alban Crequy <alban.crequy@collabora.co.uk>
11 years agoAdd _DBUS_GNUC_UNUSED, and use it in _DBUS_STATIC_ASSERT
Simon McVittie [Tue, 9 Sep 2014 11:49:44 +0000 (12:49 +0100)] 
Add _DBUS_GNUC_UNUSED, and use it in _DBUS_STATIC_ASSERT

This means we can use _DBUS_STATIC_ASSERT at non-global scope without
tripping -Wunused-local-typedefs.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83767
Reviewed-by: Alban Crequy <alban.crequy@collabora.co.uk>
(cherry picked from commit 0e3d08d45cb9a9ceb2c077875eeb38306dad37b8)

11 years agobus: enforce pending_fd_timeout
Alban Crequy [Mon, 21 Jul 2014 16:17:11 +0000 (17:17 +0100)] 
bus: enforce pending_fd_timeout

This is one of four commits needed to address CVE-2014-3637.

The bus uses _dbus_connection_set_pending_fds_function and
_dbus_connection_get_pending_fds_count to be notified when there are pending
file descriptors. A timeout per connection is armed and disarmed when the file
descriptor list is used and emptied.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80559
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoDBusConnection: implements _dbus_connection_set_pending_fds_function
Alban Crequy [Fri, 18 Jul 2014 16:28:32 +0000 (17:28 +0100)] 
DBusConnection: implements _dbus_connection_set_pending_fds_function

This is one of four commits needed to address CVE-2014-3637.

This will allow the bus to be notified whenever a file descriptor is added or
removed from a DBusConnection's DBusMessageLoader.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80559
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoDBusConnection: implements _dbus_connection_get_pending_fds_count
Alban Crequy [Fri, 18 Jul 2014 15:45:07 +0000 (16:45 +0100)] 
DBusConnection: implements _dbus_connection_get_pending_fds_count

This is one of four commits needed to address CVE-2014-3637.

This will allow the bus to know whether there are pending file descriptors in a
DBusConnection's DBusMessageLoader.

https://bugs.freedesktop.org/show_bug.cgi?id=80559
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
[fix compilation on platforms that do not HAVE_UNIX_FD_PASSING -smcv]
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoconfig: add new limit: pending_fd_timeout
Alban Crequy [Mon, 21 Jul 2014 16:34:08 +0000 (17:34 +0100)] 
config: add new limit: pending_fd_timeout

This is one of four commits needed to address CVE-2014-3637.

When a file descriptor is passed to dbus-daemon, the associated D-Bus message
might not be fully sent to dbus-daemon yet. Dbus-daemon keeps the file
descriptor in the DBusMessageLoader of the connection, waiting for the rest of
the message. If the client stops sending the remaining bytes, dbus-daemon will
wait forever and keep that file descriptor.

This patch adds pending_fd_timeout (milliseconds) in the configuration to
disconnect a connection after a timeout when a file descriptor was sent but not
the remaining message.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80559
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoStop listening on DBusServer sockets when reaching max_incomplete_connections
Alban Crequy [Fri, 4 Jul 2014 14:05:51 +0000 (15:05 +0100)] 
Stop listening on DBusServer sockets when reaching max_incomplete_connections

This addresses the parts of CVE-2014-3639 not already addressed by
reducing the default authentication timeout.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80851
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80919
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoconfig: change default auth_timeout to 5 seconds
Alban Crequy [Tue, 8 Jul 2014 11:00:58 +0000 (12:00 +0100)] 
config: change default auth_timeout to 5 seconds

This partially addresses CVE-2014-3639.

This will change the default on the system bus where the limit
  <limit name="auth_timeout">...</limit>
is not specified.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80919
Reviewed-by: Thiago Macieira <thiago@kde.org>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoconfig: change DEFAULT_MESSAGE_UNIX_FDS to 16
Simon McVittie [Fri, 12 Sep 2014 14:51:39 +0000 (15:51 +0100)] 
config: change DEFAULT_MESSAGE_UNIX_FDS to 16

This addresses CVE-2014-3636.

Based on a patch by Alban Crequy. Now that it's the same on all
platforms, there's little point in it being set by configure/cmake.

This change fixes two distinct denials of service:

fd.o#82820, part A
------------------

Before this patch, the system bus had the following default configuration:
- max_connections_per_user: 256
- DBUS_DEFAULT_MESSAGE_UNIX_FDS: usually 1024 (or 256 on QNX, see fd.o#61176)
  as defined by configure.ac
- max_incoming_unix_fds: DBUS_DEFAULT_MESSAGE_UNIX_FDS*4 = usually 4096
- max_outgoing_unix_fds: DBUS_DEFAULT_MESSAGE_UNIX_FDS*4 = usually 4096
- max_message_unix_fds: DBUS_DEFAULT_MESSAGE_UNIX_FDS = usually 1024

This means that a single user could create 256 connections and transmit
256*4096 = 1048576 file descriptors.

The file descriptors stay attached to the dbus-daemon process while they are
in the message loader, in the outgoing queue or waiting to be dispatched before
D-Bus activation.

dbus-daemon is usually limited to 65536 file descriptors (ulimit -n). If the
limit is reached and dbus-daemon needs to receive a message with a file
descriptor attached, this is signalled by recvfrom with the flag MSG_CTRUNC.
Dbus-daemon cannot recover from that error because the kernel does not have any
API to retrieve a file descriptor which has been discarded with MSG_CTRUNC.
Therefore, it closes the connection of the sender. This is not necessarily the
connection which generated the most file descriptors so it can lead to
denial-of-service attacks.

In order to prevent DoS issues, this patch reduces DEFAULT_MESSAGE_UNIX_FDS to
16:

max_connections_per_user * max_incoming_unix_fds = 256 * 64 = 16384

This is less than the usual "ulimit -n" (65536) with a good margin to
accomodate the other sources of file descriptors (stdin/stdout/stderr,
listening sockets, message loader, etc.).

Distributors on non-Linux may need to configure a smaller limit in
system.conf, if their limit on the number of fds is smaller than
Linux's.

fd.o#82820, part B
------------------

On Linux, it's not possible to send more than 253 fds in a single sendmsg()
call: sendmsg() would return -EINVAL.
  #define SCM_MAX_FD      253

SCM_MAX_FD changed value during Linux history:
- it used to be (OPEN_MAX-1)
- commit c09edd6eb (Jul 2007) changed it to 255
- commit bba14de98 (Nov 2010) changed it to 253

Libdbus always sends all of a message's fds, and the beginning
of the message itself, in a single sendmsg() call. Combining these
two, a malicious sender could split a message across two or more
sendmsg() calls to construct a composite message with 254 or more
fds. When dbus-daemon attempted to relay that message to its
recipient in a single sendmsg() call, it would receive EINVAL,
interpret that as a fatal socket error and disconnect the recipient,
resulting in denial of service.

This is fixed by keeping max_message_unix_fds <= SCM_MAX_FD.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=82820
Reviewed-by: Alban Crequy <alban.crequy@collabora.co.uk>
11 years agosystem bus limit: use max_replies_per_connection=128 by default
Alban Crequy [Thu, 10 Jul 2014 14:08:06 +0000 (15:08 +0100)] 
system bus limit: use max_replies_per_connection=128 by default

This addresses CVE-2014-3638.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=81053
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoNEWS for 1.8
Simon McVittie [Mon, 15 Sep 2014 10:50:57 +0000 (11:50 +0100)] 
NEWS for 1.8

11 years agoOn Linux, call prctl to disable core dumps
Simon McVittie [Mon, 15 Sep 2014 10:50:48 +0000 (11:50 +0100)] 
On Linux, call prctl to disable core dumps

Whenever I forget to turn off corekeeper, the regression tests
take ages to record all test-segfault's crashes.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83772
Reviewed-by: Alban Crequy <alban.crequy@collabora.co.uk>
11 years agoNEWS for 1.8.x
Simon McVittie [Fri, 12 Sep 2014 11:35:31 +0000 (12:35 +0100)] 
NEWS for 1.8.x

11 years agoenable build support without systemd compatibility libraries
Umut Tezduyar Lindskog [Tue, 2 Sep 2014 07:02:31 +0000 (09:02 +0200)] 
enable build support without systemd compatibility libraries

systemd 209 merged all the libraries to libsystemd. Old
libraries can still be enabled with --enable-compat-libs
switch in systemd but this increases the binary size.

Implement a fallback library check in case compat libraries
dont exist.

[Fixed underquoting; switched priority so we try libsystemd first -smcv]
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoFix windows doc for running tests.
Ralf Habacker [Tue, 14 Jan 2014 23:45:41 +0000 (00:45 +0100)] 
Fix windows doc for running tests.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoNEWS for 1.8
Simon McVittie [Fri, 5 Sep 2014 15:48:00 +0000 (16:48 +0100)] 
NEWS for 1.8

11 years agoStats: fix compilation issue
Alban Crequy [Thu, 24 Jul 2014 07:04:48 +0000 (08:04 +0100)] 
Stats: fix compilation issue

Bug-Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=507232
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=81043
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agostart 1.8.7
Simon McVittie [Wed, 2 Jul 2014 17:24:44 +0000 (18:24 +0100)] 
start 1.8.7

11 years agoPrepare 1.8.6 in advance dbus-1.8.6
Simon McVittie [Mon, 30 Jun 2014 13:18:03 +0000 (14:18 +0100)] 
Prepare 1.8.6 in advance

11 years agoHandle ETOOMANYREFS when sending recursive fds (SCM_RIGHTS)
Alban Crequy [Tue, 24 Jun 2014 16:57:14 +0000 (17:57 +0100)] 
Handle ETOOMANYREFS when sending recursive fds (SCM_RIGHTS)

Since Linux commit 25888e (from 2.6.37-rc4, Nov 2010), sendmsg() on Unix
sockets returns -1 errno=ETOOMANYREFS ("Too many references: cannot splice")
when the passfd mechanism (SCM_RIGHTS) is "abusively" used recursively by
applications. A malicious client could use this to force a victim system
service to be disconnected from the system bus; the victim would likely
respond by exiting. This is a denial of service (fd.o #80163,
CVE-2014-3532).

This patch silently drops the D-Bus message on ETOOMANYREFS and does not close
the connection.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80163
Reviewed-by: Thiago Macieira <thiago@kde.org>
[altered commit message to explain DoS significance -smcv]
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoIf loader contains two messages with fds, don't corrupt the second
Simon McVittie [Wed, 11 Jun 2014 11:24:20 +0000 (12:24 +0100)] 
If loader contains two messages with fds, don't corrupt the second

There were two bugs here: we would previously overwrite the unused
fds with the already-used fds instead of the other way round, and
we would copy n bytes where we should have copied n ints.

Additionally, sending crafted messages in a chosen sequence to a victim
system service could cause an invalid file descriptor to be present
when dbus-daemon tries to forward one of those crafted messages to the
victim, causing sendmsg() to fail with EBADF, which resulted in
disconnecting the victim service, which would likely respond to that
by exiting. This is a denial of service (fd.o #80469, CVE-2014-3533).

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=79694
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80469
Reviewed-by: Alban Crequy <alban.crequy@collabora.co.uk>
11 years agoNEWS
Simon McVittie [Wed, 11 Jun 2014 10:45:28 +0000 (11:45 +0100)] 
NEWS

11 years agodbus-launch: kill bus if we can't attach to a session when requested
Роман Донченко [Wed, 11 Jun 2014 10:38:24 +0000 (11:38 +0100)] 
dbus-launch: kill bus if we can't attach to a session when requested

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=74698
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoreset version
Simon McVittie [Tue, 10 Jun 2014 17:43:40 +0000 (18:43 +0100)] 
reset version

11 years agoPrepare embargoed security release dbus-1.8.4
Simon McVittie [Thu, 5 Jun 2014 13:54:36 +0000 (14:54 +0100)] 
Prepare embargoed security release

11 years agoCVE-2014-3477: deliver activation errors correctly, fixing Denial of Service
Alban Crequy [Tue, 20 May 2014 13:37:37 +0000 (14:37 +0100)] 
CVE-2014-3477: deliver activation errors correctly, fixing Denial of Service

How it should work:

When a D-Bus message activates a service, LSMs (SELinux or AppArmor) check
whether the message can be delivered after the service has been activated. The
service is considered activated when its well-known name is requested with
org.freedesktop.DBus.RequestName. When the message delivery is denied, the
service stays activated but should not receive the activating message (the
message which triggered the activation). dbus-daemon is supposed to drop the
activating message and reply to the sender with a D-Bus error message.

However, it does not work as expected:

1. The error message is delivered to the service instead of being delivered to
   the sender. As an example, the error message could be something like:

     An SELinux policy prevents this sender from sending this
     message to this recipient, [...] member="MaliciousMethod"

   If the sender and the service are malicious confederates and agree on a
   protocol to insert information in the member name, the sender can leak
   information to the service, even though the LSM attempted to block the
   communication between the sender and the service.

2. The error message is delivered as a reply to the RequestName call from
   service. It means the activated service will believe it cannot request the
   name and might exit. The sender could activate the service frequently and
   systemd will give up activating it. Thus the denial of service.

The following changes fix the bug:
- bus_activation_send_pending_auto_activation_messages() only returns an error
  in case of OOM. The prototype is changed to return TRUE, or FALSE on OOM
  (and its only caller sets the OOM error).
- When a client is not allowed to talk to the service, a D-Bus error message
  is pre-allocated to be delivered to the client as part of the transaction.
  The error is not propagated to the caller so RequestName will not fail
  (except on OOM).

[fixed a misleading comment -smcv]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=78979
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
11 years agodevelopment version
Simon McVittie [Wed, 30 Apr 2014 19:58:39 +0000 (20:58 +0100)] 
development version

11 years ago1.8.2 dbus-1.8.2
Simon McVittie [Wed, 30 Apr 2014 19:14:51 +0000 (20:14 +0100)] 
1.8.2

11 years agoHandle 0x0d0a EOLs in spawn_dbus_daemon()
Руслан Ижбулатов [Sat, 8 Mar 2014 04:18:43 +0000 (04:18 +0000)] 
Handle 0x0d0a EOLs in spawn_dbus_daemon()

On W32 dbus daemon will print output in text mode, with 0x0d0a EOLs instead
of just 0x0a. Be able to handle that.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=75863
Reviewed-by: Simon McVittie
11 years agoNEWS
Simon McVittie [Wed, 30 Apr 2014 18:21:47 +0000 (19:21 +0100)] 
NEWS

11 years agoAvoid killing all available processes if an X error arrives early on
Роман Донченко [Wed, 30 Apr 2014 18:11:56 +0000 (19:11 +0100)] 
Avoid killing all available processes if an X error arrives early on

The timeline of events in dbus-launch's main process goes something like this:

* do initial X calls
[1]
* do some other stuff
* fork
    (child process starts doing some other stuff)
* return "intermediate parent" pid from fork()
* obtain bus daemon pid from bus_pid_to_launcher_pipe
[2]
* do things that might include X11 calls or killing the dbus-daemon

Meanwhile, the "babysitter" child goes like this:

* return 0 from fork()
[3]
* obtain bus daemon pid from parent process via bus_pid_to_babysitter_pipe
[4]
* do things that might include X11 calls or killing the bus daemon

Before [1] or [3], the right thing to do about an X error is to just
exit. The current implementation called kill(-1) first, which is
undesirable: it kills unrelated processes. With this change, we
just exit.

After [2] or [4], the right thing to do is to kill the dbus-daemon,
and that's what the existing code did.

Between [1] and [2], or between [3] and [4], there is no correct thing
that we can do immediately: we would have to wait for the end of the
"critical section", *then* kill the dbus-daemon. This has not yet been
implemented, so this patch relies for its correctness on the fact that
there are no libX11 calls between those points, so we cannot receive
an X error between them.

dbus-launch deserves more comments, or a reimplementation that is easier to
understand, but this change is certainly better than nothing.

[Commit message added, summarizing reviewers' comments -smcv]
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=74698
Reviewed-by: Simon McVittie
Reviewed-by: Thiago Macieira
11 years agoNEWS for 1.8
Simon McVittie [Mon, 28 Apr 2014 14:45:22 +0000 (15:45 +0100)] 
NEWS for 1.8

11 years agoAdd "Documentation=man:dbus-daemon(1)" line to systemd service
Cameron Norman [Mon, 28 Apr 2014 14:42:11 +0000 (15:42 +0100)] 
Add "Documentation=man:dbus-daemon(1)" line to systemd service

Enhances usability under systemd by making the documentation available
with systemctl status or systemctl help.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77447
Reviewed-by: Simon McVittie
11 years agoTry to read /etc/machine-id before inventing a new /var/lib/dbus/machine-id
Simon McVittie [Fri, 25 Apr 2014 17:51:26 +0000 (18:51 +0100)] 
Try to read /etc/machine-id before inventing a new /var/lib/dbus/machine-id

It's least confusing if the two files have the same contents. systemd
already knows how to pick up our /var/lib/dbus/machine-id if it exists
and /etc/machine-id doesn't, but the converse is not currently true.
We should make it true, so that it doesn't matter what order
systemd-machine-id-setup and "dbus-uuidgen --ensure" were
invoked in.

In Debian, systemd currently Recommends dbus, so "dbus-uuidgen --ensure"
will *usually* - but not always! - run first, and the two files will
match. However, if you install systemd without dbus, and then install
dbus later, there will be a mismatch. With this change, it doesn't
matter which one is installed first: whichever one happens to come
first, it will generate the machine ID, and then the other one will
copy it.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77941
Reviewed-by: Lennart Poettering
11 years ago_dbus_write_uuid_file: factor out function to write a known UUID
Simon McVittie [Fri, 25 Apr 2014 17:30:19 +0000 (18:30 +0100)] 
_dbus_write_uuid_file: factor out function to write a known UUID

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77941
Reviewed-by: Lennart Poettering
11 years agoUpdate email-address for David Zeuthen.
David Zeuthen [Thu, 20 Feb 2014 23:42:13 +0000 (15:42 -0800)] 
Update email-address for David Zeuthen.

I no longer have the email address davidz@redhat.com so update it to
my current address.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=75288

11 years agoUpdate .gitignore files
Lukasz Skalski [Thu, 6 Mar 2014 11:39:20 +0000 (12:39 +0100)] 
Update .gitignore files

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=75833
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoNEWS for dbus-1.8
Simon McVittie [Mon, 3 Mar 2014 15:44:44 +0000 (15:44 +0000)] 
NEWS for dbus-1.8

11 years agoFix of 'dbus-daemon can only handle 64 simultaneous connections on Windows'.
Cristian Onet [Mon, 27 Jan 2014 10:58:37 +0000 (11:58 +0100)] 
Fix of 'dbus-daemon can only handle 64 simultaneous connections on Windows'.

[Slightly modified by -rh]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71297
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years agoGive cmake users some hints/requirements when cross compiling for Windows on Linux.
Ralf Habacker [Tue, 14 Jan 2014 19:12:36 +0000 (20:12 +0100)] 
Give cmake users some hints/requirements when cross compiling for Windows on Linux.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
11 years ago1.8.1
Simon McVittie [Mon, 20 Jan 2014 16:11:58 +0000 (16:11 +0000)] 
1.8.1