]> git.ipfire.org Git - thirdparty/dbus.git/log
thirdparty/dbus.git
3 years agobus: Show the errno if inotify cannot be initialized bus-inotify-error-handling
Simon McVittie [Fri, 10 Dec 2021 13:09:15 +0000 (13:09 +0000)] 
bus: Show the errno if inotify cannot be initialized

This will hopefully help to indicate why.

Signed-off-by: Simon McVittie <smcv@collabora.com>
3 years agobus: Correct check for inotify_init() failure
Simon McVittie [Fri, 10 Dec 2021 13:08:38 +0000 (13:08 +0000)] 
bus: Correct check for inotify_init() failure

fd 0 is a valid fd - although if we get stdin as our inotify fd, something
is weird somewhere. For the dbus-daemon, in practice this should never
happen, because we use _dbus_ensure_standard_fds() to make sure stdin
is already open. For unit tests, it could in theory be the case that
stdin is closed.

Signed-off-by: Simon McVittie <smcv@collabora.com>
3 years agoMerge branch 'fix-issue-362' into 'master'
Simon McVittie [Fri, 10 Dec 2021 12:46:13 +0000 (12:46 +0000)] 
Merge branch 'fix-issue-362' into 'master'

Fix `test applications do not display invalid test selection`

Closes #362

See merge request dbus/dbus!233

3 years agoIn _dbus_test_main() check if a specified test name is available
Ralf Habacker [Fri, 10 Dec 2021 09:24:30 +0000 (10:24 +0100)] 
In _dbus_test_main() check if a specified test name is available

Fixes #362

3 years agotest/test-utils.c: Add command line option --list-tests to test applications
Ralf Habacker [Fri, 10 Dec 2021 09:22:56 +0000 (10:22 +0100)] 
test/test-utils.c: Add command line option --list-tests to test applications

With this command line option a list of available tests is printed to
stdout.

3 years agotest/test-utils.c: Add command line option --help to test applications
Ralf Habacker [Fri, 10 Dec 2021 09:17:18 +0000 (10:17 +0100)] 
test/test-utils.c: Add command line option --help to test applications

3 years agoMerge branch 'fix-issue-360' into 'master'
Simon McVittie [Thu, 9 Dec 2021 15:34:07 +0000 (15:34 +0000)] 
Merge branch 'fix-issue-360' into 'master'

Fix  test-bus related memory leaks on Windows

Closes #360

See merge request dbus/dbus!232

3 years agoAvoid assertation in bus_activation_reload()
Ralf Habacker [Thu, 9 Dec 2021 08:51:09 +0000 (09:51 +0100)] 
Avoid assertation in bus_activation_reload()

In the mentioned function a local DBusError instance is now used to
fulfill the requirement of dbus_error_has_name() that the parameter
'error' must not be null.

See #360

3 years agoFix memory leaks in Windows variant of _dbus_directory_open()
Ralf Habacker [Wed, 8 Dec 2021 15:02:08 +0000 (16:02 +0100)] 
Fix memory leaks in Windows variant of _dbus_directory_open()

If the memory is not sufficient, the created DBusString instance must be
released. This belongs to the mentioned function and
_dbus_string_init_from_string().

Fixes #360

3 years agoMerge branch 'fix-test-dbus-daemon-windows' into 'master'
Simon McVittie [Tue, 7 Dec 2021 13:07:30 +0000 (13:07 +0000)] 
Merge branch 'fix-test-dbus-daemon-windows' into 'master'

tools/ci-build.sh: Double maximum test time when running tests on Windows

Closes #320 and #359

See merge request dbus/dbus!231

3 years agotools/ci-build.sh: Double maximum test time when running tests on Windows
Ralf Habacker [Mon, 6 Dec 2021 16:01:01 +0000 (17:01 +0100)] 
tools/ci-build.sh: Double maximum test time when running tests on Windows

The currently timeout of 60 seconds is too short for test-dbus-daemon on
Windows, depending on the load of the CI system.

Fixes #359

3 years agoMerge branch 'fix-issue-357' into 'master'
Simon McVittie [Mon, 6 Dec 2021 13:02:31 +0000 (13:02 +0000)] 
Merge branch 'fix-issue-357' into 'master'

test-spawn-oom: Fix regression with recent Windows refactoring

Closes #357 and #279

See merge request dbus/dbus!228

3 years agoAdd returning oom error in _dbus_spawn_program() when building for WINCE
Ralf Habacker [Sat, 4 Dec 2021 14:53:06 +0000 (15:53 +0100)] 
Add returning oom error in _dbus_spawn_program() when building for WINCE

3 years agoAdjust _dbus_spawn_async_with_babysitter() on Windows to follow Unix like OOM behavior
Ralf Habacker [Tue, 30 Nov 2021 14:11:01 +0000 (15:11 +0100)] 
Adjust _dbus_spawn_async_with_babysitter() on Windows to follow Unix like OOM behavior

That way, the spawn-oom unit test could expect OOM on Windows to behave
the same as OOM on Unix, raising DBUS_ERROR_NO_MEMORY.

3 years ago_dbus_decrement_fail_alloc_counter(): Enable out of memory testing on Windows
Ralf Habacker [Sat, 4 Dec 2021 12:54:47 +0000 (13:54 +0100)] 
_dbus_decrement_fail_alloc_counter(): Enable out of memory testing on Windows

3 years agoFix memory leak in protect_argv() in case of memory shortage
Ralf Habacker [Sat, 4 Dec 2021 12:53:57 +0000 (13:53 +0100)] 
Fix memory leak in protect_argv() in case of memory shortage

3 years agoprotect_argv(): Only set return variable in success case
Ralf Habacker [Sat, 4 Dec 2021 12:53:10 +0000 (13:53 +0100)] 
protect_argv(): Only set return variable in success case

This avoids overwriting the variable even if there is no result.

3 years agoMerge branch 'windows-error-oom' into 'master'
Ralf Habacker [Mon, 6 Dec 2021 10:08:59 +0000 (10:08 +0000)] 
Merge branch 'windows-error-oom' into 'master'

_dbus_win_set_error_from_last_error: Always set the error

See merge request dbus/dbus!229

3 years ago_dbus_win_set_error_from_last_error: Always set the error
Simon McVittie [Fri, 3 Dec 2021 15:52:16 +0000 (15:52 +0000)] 
_dbus_win_set_error_from_last_error: Always set the error

If we run out of memory while setting an error, we need to recover by
setting the error to "out of memory" instead of the original error.
Otherwise, the error indicator would be unset, breaking the rules of
our error model.

Signed-off-by: Simon McVittie <smcv@collabora.com>
3 years agoFix gcc compile error: redundant redeclaration of ‘environ’ [-Werror=redundant-decls]
Ralf Habacker [Tue, 30 Nov 2021 09:14:05 +0000 (10:14 +0100)] 
Fix gcc compile error: redundant redeclaration of ‘environ’ [-Werror=redundant-decls]

Cherry picked from dbus/dbus!227

3 years agoMerge branch 'issue-355' into 'master'
Ralf Habacker [Tue, 30 Nov 2021 09:31:49 +0000 (09:31 +0000)] 
Merge branch 'issue-355' into 'master'

Fix MinGW build error

Closes #355

See merge request dbus/dbus!226

3 years agoFix MinGW build error: cast between incompatible function types from 'FARPROC' [...
Ralf Habacker [Mon, 29 Nov 2021 09:49:21 +0000 (10:49 +0100)] 
Fix MinGW build error: cast between incompatible function types from 'FARPROC' [-Werror=cast-function-type]'

The build error occurred in 'dbus/dbus-sysdeps-win.c:129:43:

Fixes #355

3 years agotools/ci-*.sh: Show used command line for CI build scripts
Ralf Habacker [Fri, 26 Nov 2021 07:20:56 +0000 (08:20 +0100)] 
tools/ci-*.sh: Show used command line for CI build scripts

This makes it much easier to determine the command line used for the
purpose of reproducing the build.

3 years agoMerge branch 'dbus-run-session-refactor' into 'master'
Simon McVittie [Mon, 29 Nov 2021 14:45:13 +0000 (14:45 +0000)] 
Merge branch 'dbus-run-session-refactor' into 'master'

_dbus_spawn_program(): Add additional parameter to return error

See merge request dbus/dbus!223

3 years agodbus-spawn-win.c: Refactoring compose_string() and related functions to use DBusString
Ralf Habacker [Thu, 25 Nov 2021 09:21:11 +0000 (10:21 +0100)] 
dbus-spawn-win.c: Refactoring compose_string() and related functions to use DBusString

Since the code to compose strings is already used multiple times the
refactoring results in a new function _dbus_string_append_strings().

3 years ago_dbus_spawn_program(): Add additional parameter to return error
Ralf Habacker [Wed, 24 Nov 2021 08:49:47 +0000 (09:49 +0100)] 
_dbus_spawn_program(): Add additional parameter to return error

By specifying an error instance via the additional parameter, errors that
occur in it are transported to the caller in a coordinated manner.

This eliminates the need to query GetLastError() outside the function,
which can return an incorrect value if the implementation changes.

3 years ago_dbus_spawn_program() now returns #NULL for unification in case of error
Ralf Habacker [Wed, 24 Nov 2021 08:47:49 +0000 (09:47 +0100)] 
_dbus_spawn_program() now returns #NULL for unification in case of error

3 years agoAdd _DBUS_GNUC_PRINTF annotation to _dbus_win_set_error_from_last_error()
Ralf Habacker [Tue, 23 Nov 2021 15:00:37 +0000 (16:00 +0100)] 
Add _DBUS_GNUC_PRINTF annotation to _dbus_win_set_error_from_last_error()

This makes printf like format string related issues visible.

3 years agoRemove `build:` prefix from jobs to make labels more visible in pipeline page
Ralf Habacker [Thu, 25 Nov 2021 14:07:43 +0000 (15:07 +0100)] 
Remove `build:` prefix from jobs to make labels more visible in pipeline page

The length if the displayed jobs is limited on the gitlab CI pipeline page
and is occupied partly be the prefix.

Cherry-picked from dbus/dbus/!192

3 years agoMerge branch 'master' into 'master'
Simon McVittie [Fri, 26 Nov 2021 14:57:58 +0000 (14:57 +0000)] 
Merge branch 'master' into 'master'

autotools: use pkg-config instead of AC_PATH_XTRA

See merge request dbus/dbus!212

3 years agoautotools: use pkg-config instead of AC_PATH_XTRA
SCOTT-HAMILTON [Sun, 29 Aug 2021 14:34:25 +0000 (16:34 +0200)] 
autotools: use pkg-config instead of AC_PATH_XTRA

3 years agoMerge branch 'issue-354' into 'master'
Simon McVittie [Thu, 25 Nov 2021 15:55:42 +0000 (15:55 +0000)] 
Merge branch 'issue-354' into 'master'

dbus-run-session: also catches a server-exit under Windows

Closes #354

See merge request dbus/dbus!225

3 years agodbus-run-session: also catches a server-exit under Windows
Ralf Habacker [Thu, 25 Nov 2021 14:48:45 +0000 (15:48 +0100)] 
dbus-run-session: also catches a server-exit under Windows

If the dbus-daemon fails before the --ready-event-handle is signalled,
then dbus-run-session now detects that, and exit unsuccessfully.

Fixes #354

3 years agoFix printf format string in _dbus_win_event_create_inheritable()
Ralf Habacker [Wed, 24 Nov 2021 12:43:57 +0000 (13:43 +0100)] 
Fix printf format string in _dbus_win_event_create_inheritable()

Fixup for commit 3f7c36f4.

3 years agoMerge branch 'clarify-doc-win-code' into 'master'
Ralf Habacker [Wed, 24 Nov 2021 07:08:30 +0000 (07:08 +0000)] 
Merge branch 'clarify-doc-win-code' into 'master'

Clarify NULL vs. INVALID_HANDLE_VALUE in _dbus_win_event_free()

Closes #352

See merge request dbus/dbus!224

3 years agoClarify NULL vs. INVALID_HANDLE_VALUE in _dbus_win_event_free()
Ralf Habacker [Fri, 29 Oct 2021 11:02:13 +0000 (13:02 +0200)] 
Clarify NULL vs. INVALID_HANDLE_VALUE in _dbus_win_event_free()

Fixes dbus/dbus#352

3 years agoMerge branch 'dbus-run-session-add-delay' into 'master'
Simon McVittie [Tue, 23 Nov 2021 14:04:22 +0000 (14:04 +0000)] 
Merge branch 'dbus-run-session-add-delay' into 'master'

tools/dbus-run-session: fix race between manual and automatically started dbus-daemon on Windows

Closes #297

See merge request dbus/dbus!195

3 years agotools/dbus-run-session.c: use _dbus_win_set_error_from_last_error() on remaining...
Ralf Habacker [Mon, 22 Nov 2021 07:43:37 +0000 (08:43 +0100)] 
tools/dbus-run-session.c: use _dbus_win_set_error_from_last_error() on remaining locations

The previously used function _dbus_win_stderr_win_error() has been removed
because it is no longer used.

3 years agotools/dbus-run-session: fix race between manual and automatically started dbus-daemon...
Ralf Habacker [Thu, 11 Nov 2021 09:01:29 +0000 (10:01 +0100)] 
tools/dbus-run-session: fix race between manual and automatically started dbus-daemon on Windows

dbus-run-session starts a dbus-daemon before the client application.
We must avoid letting the application try to connect before the
dbus-daemon's DBusServer is listening for connections.

In the Unix implementation, we already achieved this via the
--print-address option. If the client tried to connect too soon,
the server would not yet be listening and the client would fail.

In the Windows implementation, we communicate the bus address to
the client application as an autolaunch: address, so if the client
tried to connect too soon, it would autolaunch a new dbus-daemon
instead of using the one that it was intended to use.

We can avoid this by using a new option to pass in a Windows event
object, which will be set when the server has started and is ready
to process connections.

Fixes #297

3 years agodbus-sysdeps-win.c: Add helper functions to handle events on Windows
Ralf Habacker [Fri, 29 Oct 2021 11:02:13 +0000 (13:02 +0200)] 
dbus-sysdeps-win.c: Add helper functions to handle events on Windows

These functions are in the dbus library to be used everywhere

3 years agoMerge branch 'remove-nonexistent-match' into 'master'
Simon McVittie [Mon, 22 Nov 2021 18:06:44 +0000 (18:06 +0000)] 
Merge branch 'remove-nonexistent-match' into 'master'

bus: Don't return success from RemoveMatch if there was no such match-rule

See merge request dbus/dbus!222

3 years agotest: Exercise successful and failed RemoveMatch calls
Simon McVittie [Mon, 22 Nov 2021 15:58:40 +0000 (15:58 +0000)] 
test: Exercise successful and failed RemoveMatch calls

Reproduces: https://gitlab.freedesktop.org/dbus/dbus/-/issues/351
Signed-off-by: Simon McVittie <smcv@collabora.com>
3 years agobus: Separate RemoveMatch into prepare and commit stages
Simon McVittie [Mon, 22 Nov 2021 16:01:58 +0000 (16:01 +0000)] 
bus: Separate RemoveMatch into prepare and commit stages

This means we don't send a spurious successful reply if a caller removes
a match rule that they never added.

Signed-off-by: Simon McVittie <smcv@collabora.com>
3 years agoMerge branch 'cleanup-autolaunch-win' into 'master'
Simon McVittie [Fri, 19 Nov 2021 12:14:59 +0000 (12:14 +0000)] 
Merge branch 'cleanup-autolaunch-win' into 'master'

dbus-sysdeps-win.c: corrections of indentations and minor refactoring

See merge request dbus/dbus!221

3 years agodbus/dbus-sysdeps-win.c: Convert the character buffer 'dbus_args' to a DBusString...
Ralf Habacker [Tue, 17 Dec 2019 12:43:40 +0000 (13:43 +0100)] 
dbus/dbus-sysdeps-win.c: Convert the character buffer 'dbus_args' to a DBusString instance

This is necessary to avoid possible stack overflows.

3 years agodbus/dbus-sysdeps-*win.c: correct indentation when calling functions
Ralf Habacker [Tue, 24 Nov 2020 07:25:58 +0000 (08:25 +0100)] 
dbus/dbus-sysdeps-*win.c: correct indentation when calling functions

The normal style is <function-name><space>(<no-spaces>...<no-spaces>).

3 years agodbus/dbus-sysdeps-win.c: correction of indentations in _dbus_get_autolaunch_address ()
Ralf Habacker [Tue, 17 Dec 2019 12:21:03 +0000 (13:21 +0100)] 
dbus/dbus-sysdeps-win.c: correction of indentations in _dbus_get_autolaunch_address ()

3 years agoMerge branch 'cmake-fix-include-path' into 'master'
Ralf Habacker [Thu, 18 Nov 2021 15:12:13 +0000 (15:12 +0000)] 
Merge branch 'cmake-fix-include-path' into 'master'

cmake: In generated cmake support files get value for DBus1_INCLUDE_DIRS from related cmake target

Closes #346

See merge request dbus/dbus!214

3 years agocmake: In generated cmake support files get value for DBus1_INCLUDE_DIRS variable...
Ralf Habacker [Mon, 1 Nov 2021 12:01:59 +0000 (13:01 +0100)] 
cmake: In generated cmake support files get value for DBus1_INCLUDE_DIRS variable from related cmake target

This allows cmake to construct the resulting (relocatable) runtime paths.

Fixes dbus/dbus#346

3 years agoMerge branch 'master' into 'master'
Ralf Habacker [Thu, 18 Nov 2021 13:20:22 +0000 (13:20 +0000)] 
Merge branch 'master' into 'master'

CMake: Set IMPORTED_IMPLIB property

See merge request dbus/dbus!172

3 years agoCMake: Set IMPORTED_IMPLIB property
Julien Schueller [Sat, 12 Sep 2020 09:42:35 +0000 (09:42 +0000)] 
CMake: Set IMPORTED_IMPLIB property

Setting this property allows to fix linking to the imported target with MinGW.
This only happens when dbus is built using autotools, when cmake is used the DBus1Config.variant.in
is configured and the automatically exported target by cmake is fine.

3 years agoMerge branch 'cmake-build-fixes' into 'master'
Simon McVittie [Thu, 18 Nov 2021 13:09:14 +0000 (13:09 +0000)] 
Merge branch 'cmake-build-fixes' into 'master'

cmake: various variable corrections defined in the generated config.h

See merge request dbus/dbus!217

3 years agocmake: Separate setting compiler warnings between C and CXX
Ralf Habacker [Wed, 17 Nov 2021 08:35:11 +0000 (09:35 +0100)] 
cmake: Separate setting compiler warnings between C and CXX

This is necessary because different warnings are restricted to one
compiler variant.

3 years agoAdd HAVE_DECL_xxx checks to cmake build system
Ralf Habacker [Tue, 8 Jan 2019 08:33:41 +0000 (09:33 +0100)] 
Add HAVE_DECL_xxx checks to cmake build system

The first two definitions are required to fix cmake build error when
compiling with -Werror=undef on Windows.

The last one completes having HAVE_DECL_xxx definitions.

3 years agoMove _GNU_SOURCE to config.h.cmake
Ralf Habacker [Tue, 16 Oct 2018 20:47:18 +0000 (22:47 +0200)] 
Move _GNU_SOURCE to config.h.cmake

3 years agoMove DBUS_BUILT_R_DYNAMIC to config.h.cmake
Ralf Habacker [Sun, 21 Oct 2018 13:18:50 +0000 (15:18 +0200)] 
Move DBUS_BUILT_R_DYNAMIC to config.h.cmake

3 years agoFix definition of HAVE_SOCKLEN_T
Ralf Habacker [Wed, 3 Nov 2021 08:37:04 +0000 (09:37 +0100)] 
Fix definition of HAVE_SOCKLEN_T

3 years agoAdd configure checks for vsnprintf and vasprintf to cmake build system
Ralf Habacker [Wed, 3 Nov 2021 08:35:24 +0000 (09:35 +0100)] 
Add configure checks for vsnprintf and vasprintf to cmake build system

3 years agocmake: take over some fatal warnings from autotools
Ralf Habacker [Thu, 11 Nov 2021 12:24:06 +0000 (13:24 +0100)] 
cmake: take over some fatal warnings from autotools

Adopt various fatal warnings from the autotools build system
to see corresponding build errors also in cmake.

3 years agoMerge branch 'davidre-master-patch-89698' into 'master'
Simon McVittie [Thu, 18 Nov 2021 11:46:30 +0000 (11:46 +0000)] 
Merge branch 'davidre-master-patch-89698' into 'master'

Put dbus-daemon into session slice

See merge request dbus/dbus!219

3 years agoPut dbus-daemon into session slice
David Redondo [Wed, 17 Nov 2021 12:24:19 +0000 (12:24 +0000)] 
Put dbus-daemon into session slice

The session slice and the  app and background slices are special slices defined by
https://systemd.io/DESKTOP_ENVIRONMENTS/, where:
  session.slice: Contains only processes essential to run the user’s graphical session
  app.slice: Contains all normal applications that the user is running
This allows users or sysadmins to control resource allocation depending on the type
of the service.
Since v249 (https://github.com/systemd/systemd/commit/23dce98e89616092007005692a4574ab908db5a6)
systemd puts user services into the app slice by default so dbus needs to manually state
that it belongs in the session slice.

3 years agoMerge branch 'fix-319' into 'master'
Ralf Habacker [Thu, 18 Nov 2021 11:02:32 +0000 (11:02 +0000)] 
Merge branch 'fix-319' into 'master'

cmake: fix find_package related naming mismatch for GLIB2

Closes #319

See merge request dbus/dbus!216

3 years agocmake: fix find_package related naming mismatch for GLIB2
Ralf Habacker [Tue, 9 Nov 2021 23:49:21 +0000 (00:49 +0100)] 
cmake: fix find_package related naming mismatch for GLIB2

The package name passed to `find_package_handle_standard_args` (GLIB2) did not match the name of the calling package (GLib2).
This could lead to problems when calling code that expects `find_package`.
result variables (e.g. `_FOUND`) expect to follow a certain pattern.

fixes #319

3 years agoMerge branch 'fix-spec' into 'master'
Simon McVittie [Tue, 9 Nov 2021 12:46:03 +0000 (12:46 +0000)] 
Merge branch 'fix-spec' into 'master'

spec: Clean up use of the term for an array of dict entries

Closes #347

See merge request dbus/dbus!215

3 years agoClean up use of the term for an array of dict entries
Ralf Habacker [Mon, 8 Nov 2021 23:01:46 +0000 (00:01 +0100)] 
Clean up use of the term for an array of dict entries

fixes #347

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
4 years agoStart spec 0.37 development
Ralf Habacker [Mon, 8 Nov 2021 13:22:42 +0000 (14:22 +0100)] 
Start spec 0.37 development

4 years agoMerge branch 'get-machine-id' into 'master'
Simon McVittie [Fri, 29 Oct 2021 18:24:11 +0000 (18:24 +0000)] 
Merge branch 'get-machine-id' into 'master'

Specify what ID GetMachineId actually returns

See merge request dbus/dbus!198

4 years agoDescribe where machine ID comes from
Thomas Kluyver [Fri, 29 Oct 2021 18:24:11 +0000 (18:24 +0000)] 
Describe where machine ID comes from

4 years agoMerge branch 'test-memleak' into 'master'
Simon McVittie [Fri, 29 Oct 2021 18:12:16 +0000 (18:12 +0000)] 
Merge branch 'test-memleak' into 'master'

test/thread-blocking.c: Fix a memory leak

See merge request dbus/dbus!208

4 years agotest/thread-blocking.c: Fix a memory leak
David King [Thu, 20 May 2021 07:58:13 +0000 (08:58 +0100)] 
test/thread-blocking.c: Fix a memory leak

Free name inside the for loop. Found by Coverity.

Bug-RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=1938701

4 years agoMerge branch 'cmake-format-fixes' into 'master'
Simon McVittie [Fri, 29 Oct 2021 16:29:45 +0000 (16:29 +0000)] 
Merge branch 'cmake-format-fixes' into 'master'

CMake-format fixes

See merge request dbus/dbus!213

4 years agoApply cmake formatting rules
Ralf Habacker [Mon, 25 Oct 2021 13:56:46 +0000 (15:56 +0200)] 
Apply cmake formatting rules

4 years agotools/cmake-format: fix sed warning `Expression #1, char 25: unknown option for ...
Ralf Habacker [Mon, 25 Oct 2021 13:56:09 +0000 (15:56 +0200)] 
tools/cmake-format: fix sed warning `Expression #1, char 25: unknown option for »s«` in --all mode

4 years agotools/cmake-format: add support to use custom source root directory
Ralf Habacker [Mon, 25 Oct 2021 13:42:37 +0000 (15:42 +0200)] 
tools/cmake-format: add support to use custom source root directory

4 years agoMerge branch 'dbus-send-validate' into 'master'
Simon McVittie [Mon, 19 Jul 2021 12:27:16 +0000 (12:27 +0000)] 
Merge branch 'dbus-send-validate' into 'master'

dbus-send: Do more syntax validation

Closes #338

See merge request dbus/dbus!211

4 years agodbus-send: Validate interface, member names before use
Simon McVittie [Mon, 21 Jun 2021 11:04:05 +0000 (12:04 +0100)] 
dbus-send: Validate interface, member names before use

Instead of a failed check or assertion failure and a core dump, let's
produce an error message on stderr and a graceful nonzero exit status.
It's still not going to *work*, but at least we can avoid crashing.

    $ dbus-send / com.example.Nope..Nope
    Interface name was not valid: 'com.example.Nope.'
    $ dbus-send / com.example.Nope.0
    Invalid signal name: Member name was not valid: '0'

Resolves: dbus#338
Signed-off-by: Simon McVittie <smcv@collabora.com>
4 years agodbus-send: Print an error message if object path is syntactically invalid
Simon McVittie [Mon, 21 Jun 2021 11:02:27 +0000 (12:02 +0100)] 
dbus-send: Print an error message if object path is syntactically invalid

    $ dbus-send // nope
    Object path was not valid: '//'

Related to dbus#338.

Signed-off-by: Simon McVittie <smcv@collabora.com>
4 years agoMerge branch 'spec-correction' into 'master' 34/merge
Zeeshan Ali [Tue, 16 Mar 2021 12:07:08 +0000 (12:07 +0000)] 
Merge branch 'spec-correction' into 'master'

Add a few clarifications to the spec

See merge request dbus/dbus!203

4 years agospec: Clarify Array element needs to be padded even if inexistent
Zeeshan Ali [Wed, 24 Feb 2021 11:34:08 +0000 (12:34 +0100)] 
spec: Clarify Array element needs to be padded even if inexistent

4 years agospec: Clarify that Variant's value needs padding
Zeeshan Ali [Wed, 24 Feb 2021 11:16:08 +0000 (12:16 +0100)] 
spec: Clarify that Variant's value needs padding

4 years agoMerge branch 'ci' into 'master'
Simon McVittie [Wed, 13 Jan 2021 15:05:17 +0000 (15:05 +0000)] 
Merge branch 'ci' into 'master'

ci: bump msys2 deps, fix broken links

See merge request dbus/dbus!201

4 years agoci: bump msys2 deps, fix broken links
Marc-André Lureau [Sun, 10 Jan 2021 18:54:43 +0000 (22:54 +0400)] 
ci: bump msys2 deps, fix broken links

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
4 years agoReference CVE-2020-35512 in NEWS
Simon McVittie [Thu, 7 Jan 2021 11:55:19 +0000 (11:55 +0000)] 
Reference CVE-2020-35512 in NEWS

Signed-off-by: Simon McVittie <smcv@collabora.com>
4 years agoMerge branch 'cmake-add-unit-test-macro' into 'master'
Ralf Habacker [Fri, 11 Dec 2020 09:11:31 +0000 (09:11 +0000)] 
Merge branch 'cmake-add-unit-test-macro' into 'master'

cmake: add macro add_unit_test to reduce code duplication

See merge request dbus/dbus!196

4 years agocmake: add macro add_unit_test to reduce code duplication
Ralf Habacker [Sat, 14 Nov 2020 11:30:32 +0000 (12:30 +0100)] 
cmake: add macro add_unit_test to reduce code duplication

This macro is now used by add_test_executable and
add_session_test_executable.

4 years agoMerge branch 'ci-dependency-fixes' into 'master'
Ralf Habacker [Tue, 24 Nov 2020 07:18:19 +0000 (07:18 +0000)] 
Merge branch 'ci-dependency-fixes' into 'master'

Cleanup package installation on CI

See merge request dbus/dbus!187

4 years agotools/ci-install.sh: Use package=() style for local package list to avoid '\' notation
Ralf Habacker [Tue, 10 Nov 2020 22:35:16 +0000 (23:35 +0100)] 
tools/ci-install.sh: Use package=() style for local package list to avoid '\' notation

4 years agoOn CI use common install prefix named 'dep_prefix' for installing local packages
Ralf Habacker [Mon, 9 Nov 2020 09:58:22 +0000 (10:58 +0100)] 
On CI use common install prefix named 'dep_prefix' for installing local packages

With this commit a new variable 'ci_local_packages' has been introduced
to have a choice for using development packages from a local installation
or from the distribution.

4 years agotools/ci-build.sh: Clean up directories from possible previous builds
Ralf Habacker [Mon, 9 Nov 2020 10:06:14 +0000 (11:06 +0100)] 
tools/ci-build.sh: Clean up directories from possible previous builds

Otherwise, ci-build.sh cannot be executed on a local system if there
are previous runs.

4 years agotools/ci-install.sh: merge multiple calls to apt-get
Ralf Habacker [Fri, 6 Nov 2020 11:08:12 +0000 (12:08 +0100)] 
tools/ci-install.sh: merge multiple calls to apt-get

This required a reorganization of the steps that had been carried out.
The new order is:
   1. install packages with apt-get
   2. create user for build if required
   3. fetch and unpack tar balls
   4. create messagebus user

4 years agoMove installing packages into tools/ci-install.sh
Ralf Habacker [Fri, 6 Nov 2020 08:45:40 +0000 (09:45 +0100)] 
Move installing packages into tools/ci-install.sh

In tools/ci-build.sh the cross compile setup has to be moved further up
to match the correct subdirectory.

4 years agoMerge branch 'misc-windows-fixes' into 'master'
Simon McVittie [Mon, 23 Nov 2020 14:45:32 +0000 (14:45 +0000)] 
Merge branch 'misc-windows-fixes' into 'master'

sysdeps-win: Expand/fix verbose logging

See merge request dbus/dbus!193

4 years ago_dbus_poll_select (): fix concating multiple verbose lines
Ralf Habacker [Tue, 5 May 2020 22:28:04 +0000 (00:28 +0200)] 
_dbus_poll_select (): fix concating multiple verbose lines

4 years agoAdd verbose info to publishing session bus related functions
Ralf Habacker [Tue, 5 Feb 2019 15:13:42 +0000 (16:13 +0100)] 
Add verbose info to publishing session bus related functions

This is useful for tracking auto launch support in dbus-daemon.

4 years agoMerge branch 'update-selinux-auditing' into 'master'
Simon McVittie [Mon, 23 Nov 2020 13:23:12 +0000 (13:23 +0000)] 
Merge branch 'update-selinux-auditing' into 'master'

bus/selinux: Fix audit message types.

See merge request dbus/dbus!173

4 years agobus/selinux: Fix audit message types.
Chris PeBenito [Mon, 14 Sep 2020 15:34:04 +0000 (11:34 -0400)] 
bus/selinux: Fix audit message types.

The SELinux log callback includes a message type. Not all messages are
auditable and those that are have varying audit types. An audit message is
a security-relevant event: security state changes, MAC permission denied,
etc.  A message that is auditable is not necessarily sensitive.  Messages
that are not auditable are not security-relevant, like messages about
socket polling errors.  Update the auditing accordingly.

If the message is not auditable, fall through and write it to syslog.

Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
4 years agoMerge branch 'travis-ci-cleanup' into 'master'
Simon McVittie [Mon, 23 Nov 2020 12:06:10 +0000 (12:06 +0000)] 
Merge branch 'travis-ci-cleanup' into 'master'

Drop unused travis CI configuration files

See merge request dbus/dbus!197

4 years agoDrop unused travis CI configuration files
Ralf Habacker [Tue, 10 Nov 2020 18:57:18 +0000 (19:57 +0100)] 
Drop unused travis CI configuration files

4 years agoMerge branch 'bug/NEWS-machine-id-paths' into 'master'
Simon McVittie [Mon, 9 Nov 2020 15:00:39 +0000 (15:00 +0000)] 
Merge branch 'bug/NEWS-machine-id-paths' into 'master'

NEWS: Add missing directory 'lib' to three paths

See merge request dbus/dbus!182

5 years agoNEWS: Add missing directory 'lib' to three paths
Samy Mahmoudi [Thu, 5 Nov 2020 23:13:23 +0000 (18:13 -0500)] 
NEWS: Add missing directory 'lib' to three paths

Since ${localstatedir}/dbus should be ${localstatedir}/lib/dbus,
insert the missing directory 'lib' into the three erroneous paths.