summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add the size of the leak to the debug outputleak-locatorRay Strode2008-07-151-1/+1
|
* Add some state variables to leak locator code for speedRay Strode2008-07-151-12/+28
| | | | | | | By keeping track of the end of open blocks in the skip list, and a blocks position in the skip list we can prevent a lot of linear looping and speed things up somewhat.
* Refactor leak locator patchRay Strode2008-07-151-45/+35
| | | | Move some repeated loops to add_block and remove_block functions
* Add some sloppy code for locating memory leaksRay Strode2008-07-121-4/+115
| | | | | It would need quite a bit of polish before it could ever be merged to master.
* Merge branch 'dbus-1.2'Thiago Macieira2008-06-071-6/+5
|\
| * Fix inverted return value from dbus_connection_read_write()Oswald Buddenhagen2008-06-071-4/+6
| | | | | | | | | | | | | | | | | | * dbus/dbus-connection.c (_dbus_connection_read_write_dispatch): The double negation re no_progress_possible was obviously too confusing: the path for dispatch = FALSE would return an inverted status. So make it progress_possible and fix the logic. Signed-off-by: Thiago Macieira <thiago@kde.org>
* | Bug 15740: Solaris/ADT auditing support (simon zheng)Colin Walters2008-06-0511-3/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bus/driver.c: Add GetAdtAuditSessionData method which returns audit data for a connection. * configure.in: Detect ADT auditing support * dbus/dbus-auth.c: Read ADT auditing creds. * dbus/dbus-connection.c: Implement dbus_connection_get_adt_audit_session_data. * dbus/dbus-connection.h: Export it. * dbus/dbus-credentials.c: Add support for gathering adt_audit_data and retrieving it via _dbus_credentials_get_adt_audit_data. * dbus/dbus-credentials.h: Add DBUS_CREDENTIAL_ADT_AUDIT_DATA_ID. * dbus/dbus-protocol.h: New error DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN. * dbus/dbus-sysdeps.c: Support for reading audit credentials via ADT API. * dbus/dbus-transport.c: New function _dbus_transport_get_adt_audit_session_data to retrieve credentials. * dbus/dbus-transport.h: Export it.
* | Tweak HACKING to describe test/name-test brieflyColin Walters2008-05-301-1/+6
| | | | | | | | * HACKING: Describe test/name-test.
* | Bug 15635: Hold a reference during read/write dispatch (Scott James Remnant)Colin Walters2008-05-301-0/+10
| | | | | | | | | | | | | | | | * dbus/dbus-connection.c (_dbus_connection_read_write_dispatch): Reference the D-Bus connection during the function call since we call other functions that may free the last reference and we still expect to be able to check the connection after they return to decide our own return value.
* | Bug 15571: Clean up GUID-less connections correctly (Scott James Remnant)Colin Walters2008-05-302-8/+29
| | | | | | | | | | | | | | | | | | * dbus/dbus-connection.c (connection_forget_shared_unlocked): Remove shared connections which lack a GUID from the list that caches those, otherwise references to them will remain after they have been freed. * test/name-test/test-privserver-client.c: Update test to try GUID-less connections too.
* | Bug 15570: Reset initialized state on dbus_shutdown (Scott James Remnant)Colin Walters2008-05-302-2/+2
| | | | | | | | | | | | | | | | * dbus/dbus-bus.c (addresses_shutdown_func): Reset initialized back to FALSE after cleaning up the address list so that it will be reinitialized again if D-Bus is used after dbus_shutdown() * test/name-test/test-privserver-client.c: Uncomment part of test which should now pass.
* | Add "PrivServer" test which exercises DBusServer and dbus_shutdownColin Walters2008-05-306-1/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service.in: New service file for PrivServer. * configure.in: Generate it. * test/name-test/Makefile.am: Build test-privserver and test-privserver-client. * test/name-test/test-privserver.c: Use DBusServer to serve a private connection. * test/name-test/test-privserver-client.c: Connect via session bus and get address of private server, exercise dbus_shutdown(). * test/name-test/run-test.sh: Run it.
* | Add noinst convenience test library, add a test-shutdownColin Walters2008-05-305-17/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | * test/Makefile.am: New convenience library libdbus_testutils_la. Reorder build so that test/ gets built before test/name-test so name-test files can depend on it. * test/name-test/test-shutdown.c: New file, exercises dbus_shutdown () a bit. * test/name-test/run-test.sh Run test-shutdown. * test/test-utils.h: In some cases we already have DBUS_COMPILATION defined, avoid double definition warning.
* | Add test library functions for using DBusServerColin Walters2008-05-302-0/+158
| | | | | | | | | | | | * test/test-utils.h, test/test-utils.c: Add functions which hook up a DBusServer to a DBusLoop, useful for test cases.
* | Bug 15588: Fix typo in #ifdef for userdb cache (Scott James Remnant)Colin Walters2008-05-302-2/+2
| | | | | | | | | | | | * dbus/dbus-userdb-util.c, dbus/dbus-userdb.c: Correct name of macro used in #ifdef block to match that defined by configure, otherwise the userdb cache will never be enabled.
* | Bug 15947: Close file descriptors before execing helper (Markus Rechberger)Colin Walters2008-05-281-4/+13
| | | | | | | | | | * dbus/dbus-sysdeps-unix.c (_dbus_get_autolaunch_address): Close file descriptors before exec.
* | Merge branch 'dbus-1.2'Thiago Macieira2008-05-171-0/+7
|\ \ | |/
| * Prevent a crash in some applications due to timers leaking after theThiago Macieira2008-05-171-0/+7
| | | | | | | | | | | | | | DVusPendingCall object was freed. * dbus-connection.c: Remove the timer for the pending call's timeout in case the reply has timed out in blocking code. This fixes bug 15684.
| * take out trailing comma inside an enum so non gcc compilers don't error outJohn (J5) Palmieri2008-04-162-1/+6
| | | | | | | | | | | | * tools/dbus-monitor.c: take out the trailing comma in the ProfileAttributeFlags enum as it isn't in our style guides and causes some compilers to error out
* | take out trailing comma inside an enum so non gcc compilers don't error outJohn (J5) Palmieri2008-04-162-1/+6
| | | | | | | | | | | | * tools/dbus-monitor.c: take out the trailing comma in the ProfileAttributeFlags enum as it isn't in our style guides and causes some compilers to error out
* | up version for unstable developmentJohn (J5) Palmieri2008-04-041-2/+2
|/
* getting ready for 1.2 stable branchJohn (J5) Palmieri2008-04-045-2181/+2185
| | | | | | | * ChangeLog.pre-1-2: rename ChangeLog * NEWS.pre-1-2: rename NEWS * Makefile.am: list the pre files in EXTRA_DIST; the pre-1-0 files had not been added yet so do that too
* bump version after releaseJohn (J5) Palmieri2008-04-041-1/+1
|
* Released 1.2.1dbus-1.2.1John (J5) Palmieri2008-04-042-0/+25
|
* change version to 1.2.1 to prep releaseJohn (J5) Palmieri2008-04-041-2/+2
| | | | | * we are moving to the 1.2.x version scheme because re-licensing seems to be blocked indefinitely
* Revert "fix dbus-send so it can correctly send dictionaries"John (J5) Palmieri2008-04-043-19/+2
| | | | | | | | | | | | | This reverts commit a689ef29f176110b0f74e47fd5dd1d2d6ad3dfd3. Conflicts: ChangeLog * Turns out I reversed a patch that was alread committed but the bug had not been closed. Since the patch was applied before I also reverted the mention of Jérémie in the AUTHORS list mainly for license book keeping sanity.
* fix memleak due to autolaunch and recursive calls to _dbus_open_transportJohn (J5) Palmieri2008-04-032-1/+22
| | | | | | * Patch from Sumit <sumitskj_20@yahoo.com>, comments added * dbus/dbus-transport.c(_dbus_transport_open): fix mem leak
* modify dbus_connection_send documentationJohn (J5) Palmieri2008-04-032-6/+20
| | | | | | | | * dbus/dbus-connection.c (dbus_connection_send): add documentation to describe when to call dbus_connection_flush and dbus_connection_unref after a call to dbus_connection_send is made Initial wording by Stanislav Brabec <sbrabec at suse.cz> (fd.o bug#13558)
* fix dbus-send so it can correctly send dictionariesJérémie Dimino2008-04-033-2/+18
| | | | | | | | * tools/dbus-send.c (append_dict): Send in signature when opening up a dict entry container * AUTHORS: Add Jérémie to AUTHORS file since it was a slightly above trivial fix
* fix expiration of pending repliesKimmo Hämäläinen2008-04-032-16/+37
| | | | | | | | | | * bus/expirelist.c (do_expiration_with_current_time): calculate correct min wait time and next interval (bus_expire_list_add, bus_expire_list_add_link): if the timeout is disabled when we add an item to the expire list, enable the timeout (do_expiration_with_current_time): only set timeout if there are items to expire
* Merge branch 'master' of git+ssh://johnp@git.freedesktop.org/git/dbus/dbusJohn (J5) Palmieri2008-04-036-24/+69
|\ | | | | | | | | | | Conflicts: ChangeLog
| * Fixes for the inotify configuration file monitor backend.Frederic Crozat2008-04-012-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-04-01 Timo Hoenig <thoenig@suse.de> Patch from Frederic Crozat <fcrozat@mandriva.com> * bus/dir-watch-inotify.c (bus_watch_directory): Only monitor IN_CLOSE_WRITE, IN_DELETE, IN_MOVE_TO and IN_MOVE_FROM events. This way, only atomic changes to configuration file are monitored. * bus/dir-watch-inotify.c (_handle_inotify_watch): Fix typo in _dbus_verbose function call * bus/dir-watch-inotify.c (bus_drop_all_directory_watches): Use _dbus_strerror instead of perror
| * Check for X11 events before selecting (FDO bug #15293)Colin Walters2008-03-312-6/+21
| |
| * Make sure we call XFlush() on all code paths (FDO bug #15293)Colin Walters2008-03-312-5/+12
| |
| * Do not provide a signature to dbus_message_iter_open_container() when ↵Havoc Pennington2008-03-272-5/+6
| | | | | | | | | | | | | | | | | | opening a dict entry. 2008-03-27 Havoc Pennington <hp@redhat.com> * tools/dbus-send.c (append_dict): Do not provide a signature to dbus_message_iter_open_container() when opening a dict entry.
| * Set default exit_on_disconnect after registrationColin Walters2008-03-262-6/+15
| | | | | | | | | | | | | | | | | | | | 2008-03-26 Colin Walters <walters@verbum.org> Patch from Scott James Remnant <scott@netsplit.com> * dbus/dbus-bus.c: Set default exit_on_disconnect after registration with the bus, not before. This ensures that programs which wish to set exit_on_disconnect to FALSE will not be terminated if the bus exits during registration. (FDO Bug #15112)
* | Make BusExpireList an opaque data typeHavoc Pennington2008-03-044-53/+152
|/ | | | | | | | | | | | 2007-11-08 Havoc Pennington <hp@redhat.com> * bus/connection.c, bus/expirelist.c: Make the BusExpireList struct opaque, adding accessors for manipulating the list. In this commit there should be no change in functionality or behavior. The purpose of this change is to improve encapsulation prior to fixing some bugs Kimmo Hämäläinen found where the timeout is not properly updated, since we need to e.g. take some action whenever adding and removing stuff from the expire list.
* fix broken poll on Mac OSX - build patch by Benjamin ReedJohn (J5) Palmieri2008-03-043-2/+37
| | | | | | * configure.in: check for OSX's deadlocking poll * dbus/dbus-sysdeps-unix.c (_dbus_poll): if we have a broken poll don't use poll
* check if the linker supports a flag instead of just checking for GNU ldJohn (J5) Palmieri2008-03-042-26/+42
| | | | | | * configure.in: move AM_PROG_LIBTOOL to the top (ld_supports_flag): new function for checking if the linker supports a given flag
* add a changelog for Benjamin Reed's git patch (OS X build fixes)John (J5) Palmieri2008-03-041-0/+12
| | | | | | | | * configure.in: Platform build fixes for Mac OS X the Darwin linker does not understand the -z option; wrap it in a check for $with_gnu_ld. environ is only available at runtime, so you need to make a reference to _NSGetEnviron instead for symbols to resolve properly.
* Platform build fixes for Mac OS XBenjamin Reed2008-03-041-2/+20
| | | | | | | - the Darwin linker does not understand the -z option; wrap it in a check for $with_gnu_ld. - environ is only available at runtime, so you need to make a reference to _NSGetEnviron instead for symbols to resolve properly.
* configure.in: add $THREAD_LIBS to DBUS_LAUNCHER_LIBS so we link correctlyJohn (J5) Palmieri2008-03-042-1/+6
|
* tools/dbus-launch.c: wrap X'ism in #ifdef so we can compile without XJohn (J5) Palmieri2008-03-042-0/+7
|
* Merge branch 'master' of git+ssh://johnp@git.freedesktop.org/git/dbus/dbusJohn (J5) Palmieri2008-02-281-0/+1
|\
| * add 'tags' to .gitignoreRyan Lortie2008-02-271-0/+1
| |
* | define _AI_ADDRCONFIG if not defined so that we can compile with an older glibcJohn (J5) Palmieri2008-02-282-0/+9
|/
* Released 1.1.20dbus-1.1.20John (J5) Palmieri2008-02-263-1/+35
|
* CVE-2008-0595 dbus security policy circumventionJohn (J5) Palmieri2008-02-262-6/+38
| | | | | | | | | | | | * CVE-2008-0595 - security policy of the type <allow send_interface= "some.interface.WithMethods"/> work as an implicit allow for messages sent without an interface bypassing the default deny rules and potentially allowing restricted methods exported on the bus to be executed by unauthorized users. This patch fixes the issue. * bus/policy.c (bus_client_policy_check_can_send, bus_client_policy_check_can_receive): skip messages without an interface when evaluating an allow rule, and thus pass it to the default deny rules
* correctly unref connections without guids during shutdownJohn (J5) Palmieri2008-02-262-13/+56
| | | | | | | | | | * dbus/dbus-connection.c (close_connection_on_shutdown): new method split out from shared_connections_shutdown (shared_connections_shutdown): shutdown all shared connections without guids (_dbus_connection_ref_unlocked): handle OOM when prepending no guid connections to the shared_connections_no_guid list * Patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>
* fix build against the latest gcc/glibcJohn (J5) Palmieri2008-02-213-0/+10
| | | | | | * dbus/dbus-sysdeps-unix.c: define _GNU_SOURCE * bus/selinux.c: include limits.h * Patch by Matthias Clasen <mclasen at redhat.com>