summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'dbus-1.8.0' into baserock/pedroalvarez/genivibaserock/v1.8.0Pedro Alvarez2014-03-31214-6211/+9481
|\ | | | | | | dbus-1.8.0
| * D-Bus 1.8.0dbus-1.8.0Simon McVittie2014-01-202-7/+37
| |
| * Revert "start spec 0.24"Simon McVittie2014-01-201-10/+2
| | | | | | | | | | | | It hasn't otherwise changed since 1.7.10. This reverts commit fb16f80d457a66610f615b44158330bf7ba68697.
| * Let cmake 'make check' run test applications as test group.Ralf Habacker2014-01-171-11/+1
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Rename bus-test-launch-helper to test-bus-launch_helper to match common test ↵Ralf Habacker2014-01-174-8/+8
| | | | | | | | | | | | | | application naming scheme. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Rename bus-test-system to test-bus-system to match common test application ↵Ralf Habacker2014-01-173-5/+5
| | | | | | | | | | | | | | naming scheme. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Rename bus-test to test-bus to match common test application naming scheme.Ralf Habacker2014-01-176-12/+12
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Rename spawn-test to test-spawn to match common test application naming scheme.Ralf Habacker2014-01-173-6/+7
| | | | | | | | | | | | | | [Same change as for shell-test in the previous commit. -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Rename shell-test to test-shell to match common test application naming scheme.Ralf Habacker2014-01-173-7/+8
| | | | | | | | | | | | | | | | [Add its source file to SOURCES: this test was previously relying on the Automake feature that the default value of foo_bar_SOURCES is foo-bar.c. -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Rename dbus-test to test-dbus to match common test application naming scheme.Ralf Habacker2014-01-178-17/+17
| | | | | | | | | | | | [reverted the dbus-specification part -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Correct test for LIBTOOLIZE by quoting itSimon McVittie2014-01-171-1/+1
| | | | | | | | | | | | Based on a patch from Roland <blueburn85 gmail com>. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73278
| * CMake warning--.Ralf Habacker2014-01-171-1/+1
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * NEWSSimon McVittie2014-01-141-0/+30
| |
| * Don't forget allow_anonymous when merging configsMatt Hoosier2014-01-141-0/+3
| | | | | | | | | | | | | | | | | | The algorithm to collapse a subsidiary config file's data into the master data structure forgot to examine this flag. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73475 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Fix compile error on opensuse 12.2 with systemd 44 and glibc-2.15.Ralf Habacker2014-01-101-0/+3
| | | | | | | | | | | | | | The specific systemd/glibc version do not include syslog.h by default. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73455 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * tests: don't block and wait for a debugger on abortSimon McVittie2014-01-102-2/+0
| | | | | | | | | | | | | | | | | | | | In general, I think developers running the tests would expect them to terminate rather than hanging. Developers who want to debug such an abort by attaching a debugger to a live process can still set DBUS_BLOCK_ON_ABORT in the environment. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
| * Use macros for test and helper executable targets on cmake build system.Ralf Habacker2014-01-105-101/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new macros add_test_executables and add helper_executables provides a platform independent way for specifing dbus test and service applications. On native Windows and Linux/UNIX systems the test applications are directly runable. When cross compiling for Windows on Linux test applications could be executed on the Linux host system with the help of wine and activated binfmt_misc support for wine. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Add 'check' cmake target to keep in sync with autotools.Ralf Habacker2014-01-101-0/+14
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Fix mentioned files in Building section.Ralf Habacker2014-01-101-3/+1
| |
| * Create session.conf and system.conf for test/data/valid-config-files from ↵Ralf Habacker2014-01-101-2/+5
| | | | | | | | | | | | | | | | | | *.in files on cmake. We need to patch the listen address. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Define TEST_BUS_LAUNCH_BINARY for cmake to keep in sync with autotools.Ralf Habacker2014-01-103-4/+2
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Use cmake build in executable suffix.Ralf Habacker2014-01-101-3/+2
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Remove obsolete cmake project tags in sub directories; we only have one project.Ralf Habacker2014-01-084-7/+0
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68506 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * test/dbus-daemon, test/dbus-daemon-eavesdrop: allow external dbus-daemonSimon McVittie2014-01-072-2/+24
| | | | | | | | | | | | | | | | | | | | It's easier to automate these tests if they launch their own dbus-daemon, but easier to debug them if they don't: you can launch a dbus-daemon separately, under gdb. However, tests that need a specially-configured dbus-daemon will have to be skipped. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68852 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
| * Add glib support to cmake buildsystem.Ralf Habacker2014-01-076-42/+186
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68506 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * MSVC compile fix.Ralf Habacker2014-01-071-0/+1
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73345 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Use dbus provided version of va_copy().Ralf Habacker2014-01-071-1/+1
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=72840 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Skip unix only syslog test.Ralf Habacker2014-01-061-1/+2
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * start spec 0.24Simon McVittie2014-01-061-2/+10
| |
| * start 1.7.11Simon McVittie2014-01-062-1/+4
| |
| * 1.7.10dbus-1.7.10Simon McVittie2014-01-063-8/+49
| |
| * Do not install systemd unit files if build without systemdChengwei Yang2014-01-061-1/+1
| | | | | | | | | | | | | | | | | | If dbus buid without systemd (--disable-systemd or no systemd libs available when building), we expect not to install dbus systemd unit files because they're only for systemd environment. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71818 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * Merge remote-tracking branch 'origin/master'Simon McVittie2014-01-061-1/+1
| |\
| | * Define WIN32_LEAN_AND_MEAN in Windows portMatt Fischer2014-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <windows.h> somewhat cloyingly attempts to include <winsock.h> by default, which causes problems if the rest of the program is trying to use the incompatible <winsock2.h>. The Windows sysdep header attempts to prevent this by forcibly defining the winsock header guard macro, so that it will not be included. However, this does not work on MinGW because it uses a different guard macro name. This patch changes the code to instead define WIN32_LEAN_AND_MEAN, which is a more portable way to ensure that <winsock.h> will not be included. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71405 Reviewed-By: Ralf Habacker <ralf.habacker@freenet.de>
| * | dbus-daemon(1): align document about "bind" with DBus SpecChengwei Yang2014-01-061-6/+7
| | | | | | | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=72301 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | DBus Spec: add document of bind for tcp/nonce-tcp transportChengwei Yang2014-01-061-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tcp/nonce-tcp transport has a "bind" key, which can be specified a hostname and will override hostname specified in "host" key. "bind" has a special value "*" which means ip address 0.0.0.0 and will cause dbus-daemon listen on all interfaces. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=72301 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | DBus Spec: replace tab with 8 spacesChengwei Yang2014-01-061-213/+213
| | | | | | | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=72301 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | Ensure DBusError is set if _dbus_read_nonce() failChengwei Yang2014-01-061-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In _dbus_send_nonce() which call in _dbus_read_nonce() and assert on an error is set if _dbus_read_nonce() fail. However, in _dbus_read_nonce(), it may fail on fopen() and left error is unset. This will crash us if assertions hasn't been disabled. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=72298 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | kqueue: open watched directories with close-on-exec flagChengwei Yang2014-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [FreeBSD and OpenBSD contributors clarified that O_CLOEXEC has been supported for ~ 2 years on both, so for the moment we're assuming that every platform with kqueue also has working O_CLOEXEC. Please reopen the bug, with a tested patch that uses _dbus_fd_set_close_on_exec() instead, if this assumption turns out to be false. -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=72213 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | BusTransaction: remove confusing getter of connectionsChengwei Yang2014-01-064-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a DBusList* member of BusTransaction named "connections", while its getter function bus_transaction_get_connections() returns context->connections which in fact is a BusConnections pointer, this is quite confusing. Because this is what bus_context_get_connections() returns. This patch call out to bus_context_get_connections() directly and remove the then unused bus_transaction_get_connections(). https://bugs.freedesktop.org/show_bug.cgi?id=71597 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | _dbus_auth_return_buffer(): remove unused argumentChengwei Yang2014-01-064-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | The argument bytes_read of _dbus_auth_return_buffer() function isn't used at all, so remove it. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71477 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | _dbus_listen_unix_socket: don't try to set SO_REUSEADDRSimon McVittie2014-01-061-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Hurd, the setsockopt() fails. Svante Signell confirmed that on at least Linux and kFreeBSD, SO_REUSEADDR "succeeds" on Unix sockets, but doesn't have any practical effect; so rather than making the failure not issue a warning, we might as well not bother with the syscall at all. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69492 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com> Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | _dbus_read_credentials_socket: look at all cmsg headers, not just the firstSimon McVittie2014-01-061-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there are no cmsg headers, don't fail: this fixes receiving credentials on TCP sockets under at least GNU/kFreeBSD, and probably FreeBSD too. If there's more than one cmsg header, ignore any that don't look like valid SCM_CREDS. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69492 Tested-by: Svante Signell Reviewed-by: Chengwei Yang <chengwei.yang@intel.com> [added break, altered indentation in response to review -smcv] Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | If sendmsg() with SCM_CREDS fails with EINVAL, retry with send()Simon McVittie2014-01-061-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Perhaps some OSs accept and ignore attempts to send a SCM_CREDS message on a non-Unix socket, but GNU/kFreeBSD doesn't (and presumably FreeBSD doesn't either). Based on a patch by Svante Signell. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69492 Tested-by: Svante Signell Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
| * | Fix memory leak for kqueue: shutdown kqueue correctlyChengwei Yang2014-01-061-13/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are memory blocks leak when doing bus-test, both dispatch-sha1 and dispatch test cases complain memory blocks leak. This patch also fix fd leaks. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69332 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | kqueue: replace tab with spaceChengwei Yang2014-01-061-51/+51
| | | | | | | | | | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69332 [altered commit message to not say it fixes memory leaks -smcv] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | Make sure tests run with a temporary XDG_RUNTIME_DIRSimon McVittie2014-01-064-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't want the regression tests' "session" getting mixed up in system-wide "sessions". This doesn't actually matter yet, but it is likely to matter in future. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61301 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com> [merged with earlier line-wrapping of TESTS_ENVIRONMENT -smcv] Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | Reload policy rules for completed connectionsChengwei Yang2014-01-063-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The message bus which can monitor its conf dirs for changes and reload confs immediately if dir monitor enabled, for example, inotify in Linux, kqueue in *BSD. However, it doesn't apply policy rules change for completed connections, so to apply policy rules change, the client connection has to disconnect first and then re-connect to message bus. For imcomplete connections, it always has the latest review of policy rules. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39463 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | _dbus_check_dir_is_private_to_user: check that we own itSimon McVittie2013-12-021-0/+10
| | | | | | | | | | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61303 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com> Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
| * | specification: discuss "listenable" and "connectable" addressesSimon McVittie2013-12-021-5/+86
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | The --with-dbus-session-bus-connect-address configure option and the DBUS_SESSION_BUS_CONNECT_ADDRESS CMake variable expect a connectable address, while the --with-dbus-session-bus-listen-address option and the DBUS_SESSION_BUS_LISTEN_ADDRESS variable expect a listenable address. DBUS_SYSTEM_BUS_DEFAULT_ADDRESS currently has to be an address that is simultaneously listenable and connectable. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61303 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com> [fixed name of DBUS_SESSION_BUS_CONNECT_ADDRESS as per review -smcv] Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>