]> git.ipfire.org Git - thirdparty/dbus.git/log
thirdparty/dbus.git
11 years agoCVE-2014-3477: deliver activation errors correctly, fixing Denial of Service dbus-1.4
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>
12 years agoStart 1.4.27
Simon McVittie [Thu, 13 Jun 2013 12:46:07 +0000 (13:46 +0100)] 
Start 1.4.27

12 years agoPrepare embargoed release for tomorrow dbus-1.4.26
Simon McVittie [Wed, 12 Jun 2013 12:36:54 +0000 (13:36 +0100)] 
Prepare embargoed release for tomorrow

12 years agoFix distcheck with newer Doxygen: remove *.js, too, during uninstall
Simon McVittie [Tue, 5 Jun 2012 12:29:11 +0000 (13:29 +0100)] 
Fix distcheck with newer Doxygen: remove *.js, too, during uninstall

12 years agoFix distcheck: remove potentially-read-only files from builddir
Simon McVittie [Tue, 5 Jun 2012 12:27:23 +0000 (13:27 +0100)] 
Fix distcheck: remove potentially-read-only files from builddir

During distcheck, the srcdir is read-only. During "make all", cp may
preserve the read-only status of the file copied from the srcdir,
resulting in failure to overwrite it with an identical file during
"make check" (which depends on all-local).

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
12 years agoAdd a test-case for CVE-2013-2168
Simon McVittie [Mon, 10 Jun 2013 16:48:14 +0000 (17:48 +0100)] 
Add a test-case for CVE-2013-2168

Reviewed-by: Thiago Macieira <thiago@kde.org>
12 years agoCVE-2013-2168: _dbus_printf_string_upper_bound: copy the va_list for each use
Simon McVittie [Mon, 10 Jun 2013 17:06:47 +0000 (18:06 +0100)] 
CVE-2013-2168: _dbus_printf_string_upper_bound: copy the va_list for each use

Using a va_list more than once is non-portable: it happens to work
under the ABI of (for instance) x86 Linux, but not x86-64 Linux.

This led to _dbus_printf_string_upper_bound() crashing if it should
have returned exactly 1024 bytes. Many system services can be induced
to process a caller-controlled string in ways that
end up using _dbus_printf_string_upper_bound(), so this is a denial of
service.

Reviewed-by: Thiago Macieira <thiago@kde.org>
13 years agoNEWS
Simon McVittie [Fri, 9 Nov 2012 16:21:05 +0000 (16:21 +0000)] 
NEWS

13 years agoDon't leak temporary fds pointing to /dev/null
Michel HERMIER [Fri, 9 Nov 2012 15:44:43 +0000 (15:44 +0000)] 
Don't leak temporary fds pointing to /dev/null

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=56927
[commit message added -smcv]
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoactivation helper: when compiled for tests, do not reset system bus address
Simon McVittie [Tue, 2 Oct 2012 08:34:48 +0000 (09:34 +0100)] 
activation helper: when compiled for tests, do not reset system bus address

Otherwise, the tests try to connect to the real system bus, which will
often fail - particularly if you run the tests configured for the default
/usr/local (with no intention of installing the result), in which case
the tests would try to connect to /usr/local/var/run/dbus/system_bus_socket.

Reviewed-by: Colin Walters <walters@verbum.org>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=52202

13 years agoPost-release version bump
Simon McVittie [Tue, 2 Oct 2012 08:47:26 +0000 (09:47 +0100)] 
Post-release version bump

13 years agoRelease 1.4.24 dbus-1.4.24
Colin Walters [Fri, 28 Sep 2012 20:18:24 +0000 (16:18 -0400)] 
Release 1.4.24

13 years agoRelease 1.4.22
Colin Walters [Fri, 28 Sep 2012 18:03:29 +0000 (14:03 -0400)] 
Release 1.4.22

13 years agoactivation-helper: Ensure DBUS_STARTER_ADDRESS is set correctly
Geoffrey Thomas [Fri, 28 Sep 2012 05:02:06 +0000 (22:02 -0700)] 
activation-helper: Ensure DBUS_STARTER_ADDRESS is set correctly

The fix for CVE-2012-3524 filters out all environment variables if
libdbus is used from a setuid program, to prevent various spoofing
attacks.

Unfortunately, the activation helper is a setuid program linking
libdbus, and this creates a regression for launched programs using
DBUS_STARTER_ADDRESS, since it will no longer exist.

Fix this by hardcoding the starter address to the default system bus
address.

Signed-off-by: Geoffrey Thomas <gthomas@mokafive.com>
Signed-off-by: Colin Walters <walters@verbum.org>
13 years agohardening: Remove activation helper handling for DBUS_VERBOSE
Colin Walters [Fri, 28 Sep 2012 16:01:56 +0000 (12:01 -0400)] 
hardening: Remove activation helper handling for DBUS_VERBOSE

It's not really useful.

See https://bugs.freedesktop.org/show_bug.cgi?id=52202#c17

Conflicts:
bus/activation-helper.c

13 years agohardening: Ensure _dbus_check_setuid() is initialized threadsafe manner
Colin Walters [Fri, 28 Sep 2012 01:35:22 +0000 (21:35 -0400)] 
hardening: Ensure _dbus_check_setuid() is initialized threadsafe manner

This is a highly theoretical concern, but we might as well.

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

Conflicts:
dbus/dbus-sysdeps-pthread.c

13 years agoCVE-2012-3524: Don't access environment variables or run dbus-launch when setuid
Colin Walters [Wed, 22 Aug 2012 14:03:34 +0000 (10:03 -0400)] 
CVE-2012-3524: Don't access environment variables or run dbus-launch when setuid

This matches a corresponding change in GLib.  See
glib/gutils.c:g_check_setuid().

Some programs attempt to use libdbus when setuid; notably the X.org
server is shipped in such a configuration. libdbus never had an
explicit policy about its use in setuid programs.

I'm not sure whether we should advertise such support.  However, given
that there are real-world programs that do this currently, we can make
them safer with not too much effort.

Better to fix a problem caused by an interaction between two
components in *both* places if possible.

How to determine whether or not we're running in a privilege-escalated
path is operating system specific.  Note that GTK+'s code to check
euid versus uid worked historically on Unix, more modern systems have
filesystem capabilities and SELinux domain transitions, neither of
which are captured by the uid comparison.

On Linux/glibc, the way this works is that the kernel sets an
AT_SECURE flag in the ELF auxiliary vector, and glibc looks for it on
startup.  If found, then glibc sets a public-but-undocumented
__libc_enable_secure variable which we can use.  Unfortunately, while
it *previously* worked to check this variable, a combination of newer
binutils and RPM break it:
http://www.openwall.com/lists/owl-dev/2012/08/14/1

So for now on Linux/glibc, we fall back to the historical Unix version
until we get glibc fixed.

On some BSD variants, there is a issetugid() function.  On other Unix
variants, we fall back to what GTK+ has been doing.

Reported-by: Sebastian Krahmer <krahmer@suse.de>
Signed-off-by: Colin Walters <walters@verbum.org>
Conflicts:
dbus/dbus-sysdeps-unix.c

13 years agoNEWS
Simon McVittie [Wed, 25 Apr 2012 18:12:15 +0000 (19:12 +0100)] 
NEWS

13 years agouse cp and mkdir -p instead of install within source tree
Antoine Jacoutot [Wed, 25 Apr 2012 18:04:07 +0000 (19:04 +0100)] 
use cp and mkdir -p instead of install within source tree

$(INSTALL) and $(INSTALL_DATA) try to change ownerships to root:bin when
copying tests to builddir. Presumably this is a difference in behaviour
between GNU and BSD install(1): the one in GNU coreutils doesn't try-and-fail
to change ownership if you're not root.

[Commit message added by smcv]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48127
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoAvoid using monotonic time in the DBUS_COOKIE_SHA1 authentication method
David Zeuthen [Thu, 12 Apr 2012 15:16:48 +0000 (11:16 -0400)] 
Avoid using monotonic time in the DBUS_COOKIE_SHA1 authentication method

When libdbus-1 moved to using monotonic time support for the
DBUS_COOKIE_SHA1 authentication was broken, in particular
interoperability with non-libdbus-1 implementations such as GDBus.

The problem is that if monotonic clocks are available in the OS,
_dbus_get_current_time() will not return the number of seconds since
the Epoch so using it for DBUS_COOKIE_SHA1 will violate the D-Bus
specification. If both peers are using libdbus-1 it's not a problem
since both ends will use the wrong time and thus agree. However, if
the other end is another implementation and following the spec it will
not work.

First, we change _dbus_get_current_time() back so it always returns
time since the Epoch and we then rename it _dbus_get_real_time() to
make this clear. We then introduce _dbus_get_monotonic_time() and
carefully make all current users of _dbus_get_current_time() use it,
if applicable. During this audit, one of the callers,
_dbus_generate_uuid(), was currently using monotonic time but it was
decided to make it use real time instead.

Signed-off-by: David Zeuthen <davidz@redhat.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48580

13 years agoStart 1.4.21
Simon McVittie [Tue, 27 Mar 2012 13:25:49 +0000 (14:25 +0100)] 
Start 1.4.21

13 years agoPrepare version 1.4.20 dbus-1.4.20
Simon McVittie [Tue, 27 Mar 2012 12:00:19 +0000 (13:00 +0100)] 
Prepare version 1.4.20

13 years agoFix duplicate case value compiling with mingw-w64
Andoni Morales Alastruey [Wed, 14 Mar 2012 20:59:04 +0000 (21:59 +0100)] 
Fix duplicate case value compiling with mingw-w64

In mingw-w64 both ESOMETHING and WSASOMETHING are defined,
leading to a duplicate case in the switch.

Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=47321

13 years agoPort to glib 2.31.x g_thread API
Martin Pitt [Mon, 23 Jan 2012 11:11:24 +0000 (11:11 +0000)] 
Port to glib 2.31.x g_thread API

g_thread_init() is deprecated since glib 2.24, call g_type_init() instead.
Bump glib requirement accordingly.

g_thread_create is deprecated since 2.31, use g_thread_new() instead. When
building with a glib earlier than 2.31, provide a backwards compatibility shim.

[Added a comment about why we're using g_type_init() in a test that
doesn't otherwise use GObject -smcv]

[Applied to 1.4 despite just being a deprecation fix because it also fixes
linking with GLib 2.32, in which gthread has been removed from gobject's
Requires and moved to Requires.private, Debian #665665 -smcv]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44413
Bug-Debian: http://bugs.debian.org/665665
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoEnumerate data files used in the build rather than using find(1)
Simon McVittie [Mon, 26 Sep 2011 10:20:41 +0000 (11:20 +0100)] 
Enumerate data files used in the build rather than using find(1)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33840
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
13 years agoNEWS for 1.4
Simon McVittie [Mon, 20 Feb 2012 11:31:53 +0000 (11:31 +0000)] 
NEWS for 1.4

13 years agodbus-protocol.h: compile under C++11
Marc Mutz [Thu, 16 Feb 2012 07:43:40 +0000 (08:43 +0100)] 
dbus-protocol.h: compile under C++11

C++11 compilers have a feature called 'user-defined string literals' which
allow arbitrary string suffixes to have user-defined meaning.

This makes code that concatenates macros with string literals without
intervening whitespace illegal under C++11. Fortunately, string literal
concatenation has allowed intervening whitespace since the dawn of time,
so the solution is to simply pad with spaces.

Tested (header) with GCC 4.7 (trunk).

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46147
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoBack to development status
Simon McVittie [Mon, 13 Feb 2012 17:19:13 +0000 (17:19 +0000)] 
Back to development status

13 years agoRelease D-Bus 1.4.18 dbus-1.4.18
Simon McVittie [Mon, 13 Feb 2012 16:23:50 +0000 (16:23 +0000)] 
Release D-Bus 1.4.18

13 years agodbus-daemon: fix forgotten counter increase while copying configured auth mechanisms
Pavel Strashkin [Mon, 23 Jan 2012 10:20:48 +0000 (10:20 +0000)] 
dbus-daemon: fix forgotten counter increase while copying configured auth mechanisms

Previously, only one auth mechanism was used.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=45106
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoRevert "dbus-daemon: fix forgotten counter increase while copying configured auth...
Simon McVittie [Mon, 13 Feb 2012 16:18:11 +0000 (16:18 +0000)] 
Revert "dbus-daemon: fix forgotten counter increase while copying configured auth mechanisms"

This reverts commit 26b57efe43c991616186db5c499f729a900c6544.
It was incorrectly attributed.

13 years agoNEWS
Simon McVittie [Wed, 8 Feb 2012 19:06:30 +0000 (19:06 +0000)] 
NEWS

13 years agodocs: correctly invoke man2html
Jack Nagel [Fri, 16 Dec 2011 06:21:21 +0000 (00:21 -0600)] 
docs: correctly invoke man2html

man2html expects to find its input on stdin, so just passing the
filename will cause it to hang waiting for input.

[man2html 1.6g as shipped in Debian seems to be fine with files on the
command line, but apparently other versions aren't? -smcv]

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=43875

13 years agoDon't warn about deprecated declarations in this stable branch
Simon McVittie [Mon, 23 Jan 2012 11:13:42 +0000 (11:13 +0000)] 
Don't warn about deprecated declarations in this stable branch

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

13 years agoRevert addition of files which were only meant to exist on master, too
Simon McVittie [Mon, 23 Jan 2012 10:27:32 +0000 (10:27 +0000)] 
Revert addition of files which were only meant to exist on master, too

This completes the reversion started in 5df8c3db12590edd68e968.

13 years agoupdate NEWS
Simon McVittie [Mon, 23 Jan 2012 10:20:54 +0000 (10:20 +0000)] 
update NEWS

13 years agodbus-daemon: fix forgotten counter increase while copying configured auth mechanisms
Simon McVittie [Mon, 23 Jan 2012 10:20:48 +0000 (10:20 +0000)] 
dbus-daemon: fix forgotten counter increase while copying configured auth mechanisms

Previously, only one auth mechanism was used.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=45106
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoNEWS so far
Simon McVittie [Fri, 11 Nov 2011 11:48:20 +0000 (11:48 +0000)] 
NEWS so far

13 years agoRemove some dead code related to fd.o #37258
eXeC001er [Fri, 11 Nov 2011 11:33:23 +0000 (11:33 +0000)] 
Remove some dead code related to fd.o #37258

This would now just attempt to close fd -1, which is useless.

[commit message added by smcv]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37258
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoRevert all changes since a36d4918a6f646e085
Simon McVittie [Wed, 4 Jan 2012 17:44:23 +0000 (17:44 +0000)] 
Revert all changes since a36d4918a6f646e085

Someone seems to have merged part of master into 1.4. Again. Let's go
back to the "last known good" point (the branch-point of some 1.4
branches I had locally), then we can cherry-pick the changes that
should have gone in.

13 years ago1.4 branch need a fix to be compilable with msvc
Ralf Habacker [Sun, 25 Dec 2011 13:30:47 +0000 (14:30 +0100)] 
1.4 branch need a fix to be compilable with msvc

13 years agokeep cmake in sync with automake related to default bus addresses
Ralf Habacker [Thu, 22 Dec 2011 11:41:44 +0000 (12:41 +0100)] 
keep cmake in sync with automake related to default bus addresses

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

13 years agowindows fix: use install root as base path for relative pathes in dbus service file
Ralf Habacker [Wed, 21 Dec 2011 20:24:03 +0000 (21:24 +0100)] 
windows fix: use install root as base path for relative pathes in dbus service file

13 years agoMerge branch 'dbus-1.4' of ssh://git.freedesktop.org/git/dbus/dbus into dbus-1.4
Ralf Habacker [Wed, 21 Dec 2011 19:40:22 +0000 (20:40 +0100)] 
Merge branch 'dbus-1.4' of ssh://git.freedesktop.org/git/dbus/dbus into dbus-1.4

13 years agoAdds a configure time key --with-dbus-session-bus-default-address
Siraj Razick [Wed, 21 Dec 2011 18:25:35 +0000 (13:25 -0500)] 
Adds a configure time key --with-dbus-session-bus-default-address

With this key we can specifiy the default session bus address
at compile time with autotool builds made with mingw32.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=43639
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
13 years agoMerge branch 'dbus-1.4' of ssh://git.freedesktop.org/git/dbus/dbus into dbus-1.4
Ralf Habacker [Wed, 21 Dec 2011 19:22:53 +0000 (20:22 +0100)] 
Merge branch 'dbus-1.4' of ssh://git.freedesktop.org/git/dbus/dbus into dbus-1.4

14 years agocorrupt test: compile successfully against older GLib (Debian stable)
Simon McVittie [Thu, 15 Sep 2011 17:27:27 +0000 (18:27 +0100)] 
corrupt test: compile successfully against older GLib (Debian stable)

We don't really need g_socket_send_with_blocking here.

Also, don't leak the GLib socket objects.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41219
Reviewed-by: Lennart Poettering <lennart@poettering.net>
14 years agoSet DBUS_TEST_HOMEDIR when running installcheck
Simon McVittie [Fri, 16 Sep 2011 14:01:40 +0000 (15:01 +0100)] 
Set DBUS_TEST_HOMEDIR when running installcheck

This avoids spamming ~/.dbus and ~/.dbus-keyrings with filesystem activity
while running the tests.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41218
Reviewed-by: Lennart Poettering <lennart@poettering.net>
14 years ago_dbus_listen_tcp_socket: avoid leaking listen_fd in unlikely circumstances
Simon McVittie [Thu, 3 Feb 2011 17:59:07 +0000 (17:59 +0000)] 
_dbus_listen_tcp_socket: avoid leaking listen_fd in unlikely circumstances

If getaddrinfo (with port == 0) succeeds, the kernel gives us a port when
we first listen on a socket, we jump back to redo_lookup_with_port,
and getaddrinfo (with the nonzero port) fails, we leak listen_fd and all
the fds in it.

From the department of "without static analysis we'd never have spotted
this", or possibly "backward goto considered harmful".

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29881
Bug-NB: NB#180486 CID-2389
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agorefactored cmake version extracting from configure.ac
Ralf Habacker [Fri, 28 Oct 2011 22:25:18 +0000 (00:25 +0200)] 
refactored cmake version extracting from configure.ac

14 years agoOptimized error handling of previous patch
Ralf Habacker [Fri, 28 Oct 2011 19:22:53 +0000 (21:22 +0200)] 
Optimized error handling of previous patch

14 years agoFind dbus-daemon executable next to dbus shared libaray on windows.
Jesper Dam [Fri, 28 Oct 2011 13:54:30 +0000 (15:54 +0200)] 
Find dbus-daemon executable next to dbus shared libaray on windows.

If the dbus shared library and the daemon executable are both in a dir
that is not part of the default search path and dbus-1.dll is dynamically
loaded with LoadLibrary(), it will fail to locate and launch the daemon
without this patch.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41558
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
14 years agoSimplify substitution of test executables to use fewer variables
Simon McVittie [Fri, 16 Sep 2011 16:03:37 +0000 (17:03 +0100)] 
Simplify substitution of test executables to use fewer variables

Also use EXEEXT in all the service files, even in the automake build
system.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41222

14 years agoSimplify generation of bus configuration files
Simon McVittie [Fri, 16 Sep 2011 16:40:29 +0000 (17:40 +0100)] 
Simplify generation of bus configuration files

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41222

14 years agoMerge branch 'dbus-1.4'
Ralf Habacker [Sat, 24 Sep 2011 06:35:49 +0000 (08:35 +0200)] 
Merge branch 'dbus-1.4'

14 years agoUse dbus/dbus-arch-deps.h.in as source for cmake too
Ralf Habacker [Fri, 23 Sep 2011 13:38:12 +0000 (15:38 +0200)] 
Use dbus/dbus-arch-deps.h.in as source for cmake too

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41033
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
14 years agoMerge branch 'dbus-1.4'
Ralf Habacker [Thu, 22 Sep 2011 19:26:43 +0000 (21:26 +0200)] 
Merge branch 'dbus-1.4'

Conflicts:
cmake/CMakeLists.txt

14 years agoAdded cmake 'help-options' target to print out all available configure options
Ralf Habacker [Sun, 22 May 2011 21:01:13 +0000 (23:01 +0200)] 
Added cmake 'help-options' target to print out all available configure options

cherry-picked 5a0c5663ebf0b75503dfa6a60c01df07a29d3334

14 years agofixed cmake error: doc says CACHE needs type *and* doc string
Ralf Habacker [Tue, 14 Jun 2011 16:45:46 +0000 (18:45 +0200)] 
fixed cmake error: doc says CACHE needs type *and* doc string

cherry-picked aba867f2422d06393f610c6cd8c6b147b4fd6c38

14 years agoLimit batch file creating to windows
Ralf Habacker [Sat, 2 Jul 2011 22:54:20 +0000 (00:54 +0200)] 
Limit batch file creating to windows

cherry-picked 84b03cae585274bfe54e2a234dff72469cef581d

14 years agoFixed cmake buildsystem - option command only supports boolean values
Ralf Habacker [Thu, 22 Sep 2011 18:03:48 +0000 (20:03 +0200)] 
Fixed cmake buildsystem - option command only supports boolean values

Conflicts:

cmake/CMakeLists.txt

cherry picked 4ee7b07b208f64f3b76f253c449e86e86849fca8 from master
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
14 years agocmake fix: generate build timestamp
Ralf Habacker [Tue, 20 Sep 2011 07:57:52 +0000 (09:57 +0200)] 
cmake fix: generate build timestamp

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41029
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
14 years agoSimplified cmake xml parser dependencies.
Ralf Habacker [Thu, 22 Sep 2011 17:31:38 +0000 (19:31 +0200)] 
Simplified cmake xml parser dependencies.

Find either expat or libxml2 xml parser libraries, depending on -DDBUS_USE_EXPAT=ON|OFF

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41027
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
14 years agoMicro version
Simon McVittie [Wed, 21 Sep 2011 18:39:18 +0000 (19:39 +0100)] 
Micro version

14 years agoPrepare version 1.5.8 dbus-1.5.8
Simon McVittie [Wed, 21 Sep 2011 17:26:29 +0000 (18:26 +0100)] 
Prepare version 1.5.8

14 years agoMerge branch 'dbus-1.4'
Simon McVittie [Wed, 21 Sep 2011 17:21:09 +0000 (18:21 +0100)] 
Merge branch 'dbus-1.4'

Conflicts:
NEWS
configure.ac

14 years agoMicro version
Simon McVittie [Wed, 21 Sep 2011 17:14:39 +0000 (18:14 +0100)] 
Micro version

14 years agoPrepare version 1.4.16 dbus-1.4.16
Simon McVittie [Wed, 21 Sep 2011 14:26:53 +0000 (15:26 +0100)] 
Prepare version 1.4.16

14 years agoEnable more compiler warnings by default
Simon McVittie [Fri, 5 Aug 2011 12:55:48 +0000 (13:55 +0100)] 
Enable more compiler warnings by default

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agorefs test: fix unused variable
Simon McVittie [Wed, 21 Sep 2011 10:54:42 +0000 (11:54 +0100)] 
refs test: fix unused variable

This one was added since my more-unused-39231 branch.

14 years agoFix compilation of syslog test in master
Simon McVittie [Wed, 21 Sep 2011 10:53:31 +0000 (11:53 +0100)] 
Fix compilation of syslog test in master

14 years agoMerge branch 'more-unused-39231'
Simon McVittie [Wed, 21 Sep 2011 10:45:12 +0000 (11:45 +0100)] 
Merge branch 'more-unused-39231'

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoMerge branch 'remove-stub-tests-41012'
Simon McVittie [Wed, 21 Sep 2011 10:44:34 +0000 (11:44 +0100)] 
Merge branch 'remove-stub-tests-41012'

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41012
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoMerge branch 'dbus-1.4'
Simon McVittie [Wed, 21 Sep 2011 10:39:32 +0000 (11:39 +0100)] 
Merge branch 'dbus-1.4'

Conflicts:
NEWS

14 years agoNEWS
Simon McVittie [Wed, 21 Sep 2011 10:38:22 +0000 (11:38 +0100)] 
NEWS

14 years agoupdate_desktop_file_entry: initialize return value properly, and actually return it
Simon McVittie [Thu, 21 Jul 2011 12:21:29 +0000 (13:21 +0100)] 
update_desktop_file_entry: initialize return value properly, and actually return it

Since 1.4.4 (commit 75cfd97f) this function always returned FALSE. As far
as I can see this was actually harmless, because both of its callers
ignore any error that is not NoMemory (and treat it the same as success).

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39230
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoupdate_desktop_file_entry: if the service name already existed, set error
Simon McVittie [Thu, 21 Jul 2011 12:12:15 +0000 (13:12 +0100)] 
update_desktop_file_entry: if the service name already existed, set error

If we're going to return FALSE for this (which has apparently always
been the case), then we should set an error properly.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39230
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoupdate_desktop_file_entry: don't leak file_path on one particular OOM
Simon McVittie [Thu, 21 Jul 2011 12:06:21 +0000 (13:06 +0100)] 
update_desktop_file_entry: don't leak file_path on one particular OOM

Revenge of #33126: most, but not all, temporary variables were freed on
this code path.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39230
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoNEWS
Simon McVittie [Wed, 21 Sep 2011 10:25:40 +0000 (11:25 +0100)] 
NEWS

14 years agoIf --enable-tests=yes, require Python modules for complete test coverage
Simon McVittie [Wed, 24 Aug 2011 11:24:28 +0000 (12:24 +0100)] 
If --enable-tests=yes, require Python modules for complete test coverage

The two relevant tests already exit 0 with a message if importing those
modules fails.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37847
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoOnly ask pkg-config for the systemd unit directory if both are installed
Simon McVittie [Fri, 16 Sep 2011 09:50:01 +0000 (10:50 +0100)] 
Only ask pkg-config for the systemd unit directory if both are installed

pkg-config is not a hard dependency, and this check avoids errors in a
minimal build environment:

./configure: line 21777: --variable=systemdsystemunitdir: command not found

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37847
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoGive better diagnostics if --enable-tests=yes is given
Simon McVittie [Wed, 24 Aug 2011 10:00:35 +0000 (11:00 +0100)] 
Give better diagnostics if --enable-tests=yes is given

We want to indicate why it's a problem that GLib, dbus-glib are missing.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37847
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoCheck for Python; skip Python tests if not found
Simon McVittie [Wed, 24 Aug 2011 09:59:41 +0000 (10:59 +0100)] 
Check for Python; skip Python tests if not found

As with the optional test-dependencies on GLib and dbus-glib, we make this
a hard dependency if --enable-tests[=yes], but not if --enable-tests=auto.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37847
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoCope with platforms whose vsnprintf violates both POSIX and C99
Simon McVittie [Tue, 21 Jun 2011 13:09:32 +0000 (14:09 +0100)] 
Cope with platforms whose vsnprintf violates both POSIX and C99

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=11668
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoAdd a semi-automatic test for _dbus_system_log
Simon McVittie [Tue, 23 Aug 2011 15:14:21 +0000 (16:14 +0100)] 
Add a semi-automatic test for _dbus_system_log

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39987
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoCope with Unixes that don't have LOG_PERROR, like Solaris 10
Simon McVittie [Tue, 23 Aug 2011 15:10:03 +0000 (16:10 +0100)] 
Cope with Unixes that don't have LOG_PERROR, like Solaris 10

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39987
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoMake "make -C test clean" idempotent
Simon McVittie [Fri, 5 Aug 2011 12:16:47 +0000 (13:16 +0100)] 
Make "make -C test clean" idempotent

Previously, it'd fail when done twice, because you can't rmdir a
nonexistent directory.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40004
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoOn Solaris, define CMSG_ALIGN, CMSG_LEN, CMSG_SPACE if undefined
Simon McVittie [Tue, 23 Aug 2011 11:05:00 +0000 (12:05 +0100)] 
On Solaris, define CMSG_ALIGN, CMSG_LEN, CMSG_SPACE if undefined

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40235
Tested-by: Dagobert Michelsen <dam@opencsw.org>
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoFix maintainer-upload-docs target to work out-of-tree
Simon McVittie [Tue, 20 Sep 2011 17:44:25 +0000 (18:44 +0100)] 
Fix maintainer-upload-docs target to work out-of-tree

The STATIC_DOCS, DTDS and all dist_ files except XMLTO_OUTPUT are in the
source tree. The XMLTO_OUTPUT and the man2html output are in the build
tree, and the BONUS_FILES already have $(srcdir) in their names.

Also change the rules that generate the dbus-docs directory so that if
they fail, they leave behind a temporary directory, rather than leaving
behind a dbus-docs directory that causes make to not run those rules
if re-run; and change the rules to scp files to the server, to put a
trailing "/" on paths, ensuring that the tarball won't be uploaded as
"www" if the www directory doesn't already exist.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41047
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
14 years agoMerge branch 'dbus-1.4'
Ralf Habacker [Tue, 20 Sep 2011 17:37:39 +0000 (19:37 +0200)] 
Merge branch 'dbus-1.4'

14 years agocmake fix: install version string
Ralf Habacker [Tue, 20 Sep 2011 06:42:31 +0000 (08:42 +0200)] 
cmake fix: install version string

Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40905

14 years ago_dbus_pending_call_test: remove stub
Simon McVittie [Wed, 22 Jun 2011 15:13:48 +0000 (16:13 +0100)] 
_dbus_pending_call_test: remove stub

14 years ago_dbus_marshal_header_test: remove stub
Simon McVittie [Wed, 22 Jun 2011 15:13:37 +0000 (16:13 +0100)] 
_dbus_marshal_header_test: remove stub

14 years agobus_policy_test: remove stub
Simon McVittie [Wed, 22 Jun 2011 14:53:09 +0000 (15:53 +0100)] 
bus_policy_test: remove stub

14 years agodbus-internals: make sure function-like macros expand to something non-empty
Simon McVittie [Fri, 5 Aug 2011 12:43:12 +0000 (13:43 +0100)] 
dbus-internals: make sure function-like macros expand to something non-empty

This avoids sometimes-surprising semantics, and also compiler warnings
when they're the only statement in an "if" or "else" clause, without {}.

14 years agoUse {}, not semicolon, when the statement of an "if" does nothing
Simon McVittie [Fri, 5 Aug 2011 12:40:44 +0000 (13:40 +0100)] 
Use {}, not semicolon, when the statement of an "if" does nothing

The uses in bus/activation.c are also probably wrong because they ignore
the result of the test, but that's orthogonal.
(<https://bugs.freedesktop.org/show_bug.cgi?id=39858>)

14 years agoFix an assortment of variables that aren't used when not checking/asserting
Simon McVittie [Fri, 5 Aug 2011 12:25:14 +0000 (13:25 +0100)] 
Fix an assortment of variables that aren't used when not checking/asserting

14 years agoBusConnections: don't assert about BusConnectionData in functions that don't need it
Simon McVittie [Fri, 5 Aug 2011 12:24:24 +0000 (13:24 +0100)] 
BusConnections: don't assert about BusConnectionData in functions that don't need it

14 years agobus_driver_handle_message: remove unused label
Simon McVittie [Fri, 5 Aug 2011 12:23:49 +0000 (13:23 +0100)] 
bus_driver_handle_message: remove unused label

14 years agoactivation helper: remove unused variable when not being verbose
Simon McVittie [Fri, 5 Aug 2011 12:22:46 +0000 (13:22 +0100)] 
activation helper: remove unused variable when not being verbose