Commit graph

2578 commits

Author SHA1 Message Date
Ralf Habacker
34ef61645c Keep in sync with automake. 2010-12-21 08:24:00 +01:00
Ralf Habacker
2521c59437 Dist additional README's too. 2010-12-21 08:23:27 +01:00
Will Thompson
c3354cafe3 Post-release version bump to 1.4.2 2010-12-20 21:39:30 +00:00
Will Thompson
93f685255a Bump LT_REVISION for this new release. 2010-12-20 21:39:30 +00:00
Will Thompson
2a16ab9ff2 NEWS for 1.4.1 2010-12-20 21:39:30 +00:00
Havoc Pennington
7d65a3a6ed CVE 2010-4352: Reject deeply nested variants
Add DBUS_INVALID_NESTED_TOO_DEEPLY validity problem and a test that
should generate it.

Previously, we rejected deep nesting in the signature, but
variants allow dynamic message nesting, conditional only
on the depth of the message body.

The nesting limit is 64, which was also the limit in static
signatures.  Empirically, dynamic nesting depth observed on my
Fedora 14 system doesn't exceed 2; 64 is really a huge limit.

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

Signed-Off-By: Colin Walters <walters@verbum.org>
Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
2010-12-20 21:39:00 +00:00
Will Thompson
f2905def7b policy tests: Use bin rather than nogroup, wheel, or root
This group seems to exist on all of Debian, Fedora and Mac OS X. (I
mistakenly believed that nogroup exists on Fedora.)
2010-12-17 18:42:13 +00:00
Will Thompson
48a16845d6 sysdeps-unix: check for HAVE_DECL_MSG_NOSIGNAL
MSG_NOSIGNAL could theoretically be an enum member or something rather
than an #define, so it's better to check for the flag defined by the
configure check (as is done in dbus-connection.c already).

Reviewed-by: Colin Walters <walters@verbum.org>
Reviewed-by: Scott James Remnant <scott@netsplit.com>
2010-12-16 19:49:04 +00:00
Scott James Remnant
c5d0998295 sysdeps-unix: use MSG_NOSIGNAL when sending creds
Since SIGPIPE is no longer touched by default when MSG_NOSIGNAL is
available, it's extra-critical that all socket writes actually pass
that flag.

Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
2010-12-16 11:12:44 +00:00
Will Thompson
c3a94b57c8 Revert "test-autolaunch is only known to work in launchd environments."
This reverts commit 4626b40560.
test-autolaunch works fine in non-launchd environments (and non-X11
environments, based on a quick test passing enable_x11=no to configure).
On the contrary: this commit *broke* the build on non-launchd
environments, because test/name-test/run-test.sh still tried to run this
test even if it hadn't been built.
2010-12-15 09:43:17 +01:00
Will Thompson
a7e5b20e6a Ignore generated bus/org.freedesktop.dbus-session.plist 2010-12-15 09:43:11 +01:00
Will Thompson
844134faee policy tests: Use 'nogroup' rather than 'wheel' or 'root'
The excellently-titled commit 197bef8 “Fix test failures on OSX.” broke
the tests on Linux, since there's no wheel group on this side of the
tracks. So here's a group everyone should enjoy.

(If anyone comes along and tells me that DragonflyBSD doesn't have
'nogroup' …)
2010-12-15 09:42:55 +01:00
Ralf Habacker
4bf509b6fd Handle case when autolaunched daemon address is already pulished on windows. 2010-12-14 08:12:59 +01:00
Ralf Habacker
3bacc897c7 Windows fix: In install path scope case add hashed install path to mutex/shm name. 2010-12-13 23:13:56 +01:00
Will Thompson
ff393c562d Fix malformed specification XML.
bf532d6 and 28a2d08 each introduced errors in the specification XML that
left it malformed and unbuildable.
2010-12-13 15:35:34 +00:00
Ralf Habacker
72515ae754 Be more verbose when publishing or requesting session bus address on Windows. 2010-12-13 15:06:43 +01:00
Ralf Habacker
bf532d6556 Add documentation for autolaunch meta transport on Windows.
Reviewed-by: Romain Pokrzywka
2010-12-13 15:06:33 +01:00
Mike McQuaid
28a2d08815 Add launchd section to specification. 2010-12-13 12:35:55 +01:00
Ralf Habacker
c29637ac6b Implements user limited session bus on Windows.
This feature is enabled by using the session bus address
"autolaunch:scope=*user" for the client and the server.

Reviewed-by: Romain Pokrzywka
2010-12-10 08:43:43 +01:00
Ralf Habacker
9b79817148 Fixed bug not freeing mutex handle on Windows.
Reviewed-by: Romain Pokrzywka
2010-12-10 08:43:02 +01:00
Ralf Habacker
d808e529bd Variables and functions name cleanup on Windows.
Reviewed-by: Romain Pokrzywka
2010-12-10 08:42:57 +01:00
Mike McQuaid
5232faad40 10.4 is old so set more sensible launchd defaults. 2010-12-09 08:20:07 +01:00
Ralf Habacker
1d2f5607b4 Fix bus-test failure with cmake on unix.
SHA1 connection tests needs an non debug-pipe transport for the activation bus.
2010-12-07 22:51:00 +01:00
Benjamin Reed
f1b9aac417 Enable launchd.
This patch enables support for Mac OS X's launch daemon
for startup as well as sharing of the DBus session bus
environment.  It includes a LaunchAgent plist for automatic
start of the session bus.
2010-12-06 21:33:14 +01:00
Benjamin Reed
eb66c0a9c0 Look up DISPLAY from launchd if not initialized. 2010-12-06 21:33:10 +01:00
Benjamin Reed
5125fc1654 Add launchd implementation. 2010-12-06 21:33:06 +01:00
Ralf Habacker
875891e823 Fixed wrong libtoolize presence check. 2010-12-06 21:32:21 +01:00
Mike McQuaid
a19c3d2e8b libtoolize is called glibtoolize on OSX so check for it too. 2010-12-04 23:57:15 +01:00
Mike McQuaid
197bef8277 Fix test failures on OSX. 2010-12-04 23:49:39 +01:00
Mike McQuaid
4626b40560 test-autolaunch is only known to work in launchd environments. 2010-12-04 23:47:35 +01:00
Ralf Habacker
37619035de Keep in sync with automake. 2010-12-04 23:05:56 +01:00
Colin Walters
aff6263561 Added a test-autolaunch.
* test/name-test/test-autolaunch.c: New file,
	unsets DBUS_SESSION_BUS_ADDRESS so we should
	fall back to autolaunch:.
	* test/name-test/run-test.sh: Run it.
	* test/name-test/Makefile.am: Build it.
2010-12-04 23:03:13 +01:00
Mike McQuaid
2366423e97 Fix PROFILE_TIMED_FORMAT printf warning on OSX. 2010-12-04 01:42:41 +01:00
Ralf Habacker
b3fa6eff0d Added revision history. 2010-11-03 15:15:24 +01:00
Thiago Macieira
b17a5f852c Documentated autolaunch implementation for X Windowing system. 2010-11-03 15:10:44 +01:00
Ralf Habacker
a8810a7940 Service dir related bug fix on windows.
The code for accessing services requires absolute pathes, which are based
on DBUS_DATADIR. DBUS_DATADIR on windows is defined relative. This patch
makes sure that those pathes are absolute.
2010-10-29 11:55:27 +02:00
Romain Pokrzywka
fc276c340e Restore the close_on_exec flag on windows. 2010-10-29 11:24:38 +02:00
Will Thompson
75ef1d2ed4 Merge branch 'documentation-build-system' 2010-10-26 17:11:10 +01:00
Andre Heinecke
c8293868a3 Dist Readme.win instead of Readme.windbus 2010-10-13 08:01:25 +02:00
Ralf Habacker
30213f4b7d Cleaned up windows related README's. 2010-10-12 14:45:12 +02:00
Ralf Habacker
d0da9218de Fixed reference to cmake configure options. 2010-10-12 13:50:10 +02:00
Ralf Habacker
1332dba1a2 keep version in sync with automake 2010-10-12 00:20:21 +02:00
Ralf Habacker
0830273306 Merge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbus 2010-10-08 21:09:01 +02:00
Ralf Habacker
a96fcb19d1 Revert "Added documentation for autolaunch transport."
This reverts commit 2e61875728.
2010-10-08 14:56:57 +02:00
Romain Pokrzywka
6611816694 Tentative workaround for the random hangs on windows.
The problem seems to be a race condition with winsock's
internal threads for the non-blocking mode of the sockets,
but I haven't had time to try a standalone test case yet
to confirm it. Anyway, I found a workaround that fixes it
in all cases, so it's good enough for now.
2010-10-08 14:37:53 +02:00
Romain Pokrzywka
d6824bc618 tentative workaround for the random hangs on windows 2010-10-07 20:03:03 +02:00
Christian Dywan
2e134dd74c Only use signature directly inside _dbus_verbose 2010-10-05 14:50:22 +01:00
Christian Dywan
c2b9e74d4d Don't pretend to free lock if it was never allocated 2010-10-05 14:50:22 +01:00
Christian Dywan
06b0e8a8cb Always get current time in _dbus_connection_block_pending_call 2010-10-05 14:50:22 +01:00
Christian Dywan
aea8da08d1 Take care to free windows_sid in cache_peer_loginfo_string 2010-10-05 13:47:12 +01:00