summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* return message loader buffer in case of OOM (FDO Bug#12666)John (J5) Palmieri2008-01-142-0/+11
| | | | | | | | | 2008-01-14 John (J5) Palmieri <johnp@redhat.com> * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> * dbus/dbus-transport-socket.c(do_reading): return message loader buffer in case of OOM (FDO Bug#12666)
* add warning to output when libxml is selectedJohn (J5) Palmieri2008-01-142-0/+10
| | | | | | | | 2008-01-14 John (J5) Palmieri <johnp@redhat.com> * configure.in: add warning to output when libxml is selected since we don't have a libxml maintainer and expat works perfectly fine for what we need an xml parser for
* add _dbus_geteuid to fix EXTERNAL authentication in setuid applicationsJohn (J5) Palmieri2008-01-145-5/+44
| | | | | | | | | | | | | | | | | | | | | | 2008-01-14 John (J5) Palmieri <johnp@redhat.com> * Patch by Andrea Luzzardi <scox at sig11 dot org>: creates a _dbus_geteuid function to fix EXTERNAL authentication in setuid applications * dbus/dbus-sysdeps-unix.c (_dbus_geteuid): used to get the effective uid of the running program (_dbus_credentials_add_from_current_process): use geteuid instead of getuid (_dbus_append_user_from_current_process): use geteuid instead of getuid * dbus/dbus-sysdeps-util-unix.c (_dbus_change_to_daemon_user): use geteuid instead of getuid (_dbus_unix_user_is_at_console): use geteuid instead of getuid * dbus/dbus-sysdeps-win.c (_dbus_geteuid): add a windows equivilant that returns DBUS_UID_UNSET
* fix some curly braces that were on the wrong lineHavoc Pennington2007-12-182-4/+10
| | | | | | | 2007-12-18 Havoc Pennington <hp@redhat.com> * dbus/dbus-connection.c (_dbus_connection_block_pending_call): fix location of curly braces
* Allow a normal session bus to be reused by applications using autolaunchingSjoerd Simons2007-11-232-93/+155
| | | | | | | | | | | | 2007-11-23 Sjoerd Simons <sjoerd@luon.net> * tools/dbus-launch.c: let both a normal dbus-launch and an autolaunched bus save their parameters in X11 if possible. This makes the autolaunch and non-autolaunch behaviour more similar. With the exception that on a normal launch there will always be a new session bus and not being able to save parameters is not fatal. This also enables to launch programs directly with autolaunch (not very usefull though).
* Fix a problem where a nul byte was wrongly introduced into UUIDs, due to ↵Havoc Pennington2007-10-314-8/+58
| | | | | | | | | | | | | | | | | | _dbus_string_copy_to_buffer weird behavior. 2007-10-31 Havoc Pennington <hp@redhat.com> * bus/selinux.c (log_audit_callback): rewrite to use _dbus_string_copy_to_buffer_with_nul() * dbus/dbus-string.c (_dbus_string_copy_to_buffer): change to NOT nul-terminate the buffer; fail an assertion if there is not enough space in the target buffer. This fixes two bugs where copy_to_buffer was used to copy the binary bytes in a UUID, where nul termination did not make sense. Bug reported by David Castelow. (_dbus_string_copy_to_buffer_with_nul): new function that always nul-terminates the buffer, and fails an assertion if there is not enough space in the buffer.
* audit_init() was not declared in header, causing warnings; fix this and ↵Havoc Pennington2007-10-234-2/+12
| | | | | | | | | | | | namespace it 2007-10-23 Havoc Pennington <hp@redhat.com> * bus/bus.c (bus_context_new): use the new name here * bus/selinux.c (bus_selinux_audit_init): rename from audit_init() to avoid possible libc conflict, and declare it in .h file to avoid a warning
* add HAVE_SELINUX around call to audit_init() so things build without selinuxHavoc Pennington2007-10-192-3/+9
| | | | | | 2007-10-19 Havoc Pennington <hp@redhat.com> * bus/bus.c (bus_context_new): put audit_init() in HAVE_SELINUX
* do not call audit_init() from bus/ directory from files in dbus/Havoc Pennington2007-10-193-1/+12
| | | | | | | | | | | | 2007-10-19 Havoc Pennington <hp@redhat.com> * bus/bus.c (bus_context_new): put the audit_init() in here instead, which I believe ends up being the same as where it was before, though I'm not sure I understand why it goes here. * dbus/dbus-sysdeps-util-unix.c (_dbus_change_to_daemon_user): remove audit_init() from here, this file can't depend on code in bus/ directory
* configure.in: *Actually* fix detection of i486 atomic ops.Simon McVittie2007-10-162-2/+8
| | | | | My previous attempt at a fix would always enable them due to wrong quoting. Patch from Colin Walters <walters@verbum.org>
* Amend ChangeLog - DBUS_ERROR_INIT is now used within libdbus as well as providedSimon McVittie2007-10-111-3/+9
|
* Use DBUS_ERROR_INIT instead of dbus_error_init wherever it's clearly equivalentSimon McVittie2007-10-1115-115/+52
|
* Merge branch 'inline'Simon McVittie2007-10-112-0/+3
|\
| * Enable Autoconf's AC_C_INLINE to avoid compilation failure with gcc -ansi.Simon McVittie2007-10-112-0/+3
| | | | | | | | | | | | If inline isn't recognised (e.g. on a strict C90 compiler, like gcc -ansi) this defines it to __inline__, __inline or nothing, whichever works. This is safe, because we never use inline except in combination with static.
* | Merge branch 'atomic'Simon McVittie2007-10-114-25/+25
|\ \ | | | | | | | | | | | | | | | Conflicts: ChangeLog
| * | Fix detection of i486 atomic ops.Simon McVittie2007-10-114-25/+28
| | | | | | | | | | | | | | | | | | Previously, the attempts to determine support at compile-time on Darwin were causing the i486 atomic ops to be used on *all* i386 or x86-64 GCC builds (AH_VERBATIM can't be conditionalized like we were trying to).
* | | Add J5's recent changes to ChangeLogSimon McVittie2007-10-111-0/+37
| | |
* | | Update ChangeLogSimon McVittie2007-10-111-0/+3
| | |
* | | Rename DBUS_ERROR_INITIALIZER to DBUS_ERROR_INIT per Havoc's reviewSimon McVittie2007-10-112-3/+3
| | |
* | | Add DBUS_ERROR_INITIALIZER macroSimon McVittie2007-10-112-1/+25
| |/ |/|
* | Update ChangeLogSimon McVittie2007-10-111-0/+7
| |
* | .gitignore: ignore vi swapfilesSimon McVittie2007-10-111-0/+1
| |
* | dbus-launch: convert C++-style comment to C-style, add {} for claritySimon McVittie2007-10-111-2/+4
| |
* | dbus/dbus-server-socket.c: remove unused variable if disabling assertionsSimon McVittie2007-10-111-1/+1
| |
* | dbus/dbus-marshal-validate.c: get rid of empty statementsSimon McVittie2007-10-111-6/+6
| |
* | As per Havoc's review, rename DBUS_GNUC_EXTENSION to _DBUS_GNUC_EXTENSION.Simon McVittie2007-10-113-8/+15
| | | | | | | | Also update ChangeLog.
* | dbus/dbus-arch-deps.h.in: also use DBUS_GNUC_EXTENSION for ↵Simon McVittie2007-10-111-2/+2
| | | | | | | | DBUS_INT64_CONSTANT and UINT64 equivalent
* | Use DBUS_GNUC_EXTENSION to avoid -ansi -pedantic warnings about use of long ↵Simon McVittie2007-10-111-2/+2
| | | | | | | | long. (#717)
* | Add macro DBUS_GNUC_EXTENSION (the same as GLib's G_GNUC_EXTENSION)Simon McVittie2007-10-111-0/+12
|/ | | | Part of a fix for bug 717.
* Merge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbusSimon McVittie2007-10-102-10/+29
|\
| * Fix env exports for better portability (#9280)John (J5) Palmieri2007-10-091-4/+7
| |
| * Document syntax for container types in dbus-send man file (#9553)John (J5) Palmieri2007-10-091-6/+22
| | | | | | | | * Patch from Jack Spaar <jspaar at users.sourceforge.net>
* | Update ChangeLogSimon McVittie2007-10-101-0/+13
| |
* | Bring .gitignore files up to date; add *.o, *~ etc. to top-level .gitignoreSimon McVittie2007-10-107-6/+19
| | | | | | | | | | CVS ignores these automatically, so they weren't in the .cvsignore when Ryan converted the repository.
* | Fix indentation in _dbus_object_tree_register declaration as per Havoc's reviewSimon McVittie2007-10-101-1/+1
| |
* | _dbus_object_tree_register: don't duplicate check for NULL and use new ↵Simon McVittie2007-10-101-5/+4
| | | | | | | | DBUS_ERROR_OBJECT_PATH_IN_USE error, both as per Havoc's review
* | Add error o.fd.D.Error.ObjectPathInUse (DBUS_ERROR_OBJECT_PATH_IN_USE)Simon McVittie2007-10-102-0/+4
| |
* | Add dbus_connection_try_register_object_path and ↵Simon McVittie2007-10-104-24/+171
|/ | | | dbus_connection_try_register_fallback, to make object path registration less painful for bindings
* Improve description of allowed variant signatures (#10185)Simon McVittie2007-10-092-3/+6
| | | | Patch based on one from Kristoffer Lundén, amended as per Havoc's comment.
* doc/dbus-specification.xml: Clarify description of DBUS_COOKIE_SHA1 (#10184).Simon McVittie2007-10-092-10/+12
| | | | Patch from Kristoffer Lundén.
* Merge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbusSimon McVittie2007-10-098-22/+48
|\
| * fd.o bug #11678 Don't error out if compiler does not support vararg macrosJohn (J5) Palmieri2007-10-031-1/+1
| | | | | | | | | | | | * _dbus_verbose is the only function that does this so make it a noop if vararg macros are not supported * https://bugs.freedesktop.org/show_bug.cgi?id=11678
| * fd.o bug #12429 Reverse check to setpcap and only init audit if we were rootJohn (J5) Palmieri2007-10-032-8/+5
| | | | | | | | | | | | | | | | | | * patch by Dan Walsh <dwalsh@redhat.com> * https://bugs.freedesktop.org/show_bug.cgi?id=12429 * Reverse we_were_root check to setpcap if we were root. Also only init audit if we were root. So error dbus message will not show up when policy reload happens. dbus -session will no longer try to send audit message, only system will.
| * fd.o bug #11872 improve linker test for --gc-sectionsJohn (J5) Palmieri2007-10-031-2/+5
| | | | | | | | * patch by Tim Mooney <enchanter at users.sourceforge.net>
| * fd.o bug #11872 fix clearenv for systems that do not have itJohn (J5) Palmieri2007-10-032-2/+14
| | | | | | | | * patch from Brian Cameron <brian.cameron at sun.com>
| * fd.o bug #12547 remove superfluous ifJohn (J5) Palmieri2007-10-031-4/+3
| | | | | | | | * also convert tabs to spaces
| * Correctly implement -fPIC and -fPIEJohn (J5) Palmieri2007-10-033-5/+20
| | | | | | | | | | | | | | | | * For security reasons we want possition independent code for libraries and possition independent executable for executables * before we were just enabling -fPIC * now we correctly enable -fPIC and -PIE for libdbus and the bus respectively * propper LD_FLAGS are set for each also
* | doc/dbus-specification.xml: Specifically forbid empty structs (#7969)Simon McVittie2007-10-092-1/+10
|/
* Add argument path matching support. Bug #11066.Ryan Lortie2007-09-205-37/+152
| | | | | | | | | | | | | | | | | | 2007-09-20 Ryan Lortie <desrt@desrt.ca> * dbus/signals.c (struct DBusMatchRule, bus_match_rule_new, bus_match_rule_set_arg, bus_match_rule_parse_arg_match, match_rule_matches): Add support for parsing and matching on arg0path='/some/path' type rules. * dbus/signals.h (bus_match_rule_set_arg): change to take const DBusString instead of const char * for the string to match against. * dbus/dbus-bus.c: add a quick note to dbus_bus_add_match documentation about the path matching. * doc/dbus-specification.xml: add a more detailed description of the changes here.
* Add support for compacting DBusStrings to release wasted memory.Ryan Lortie2007-09-206-19/+130
| | | | | | | | | | | | | | | | | 2007-09-19 Ryan Lortie <desrt@desrt.ca> * dbus/dbus-string.[ch] (compact, _dbus_string_compact, _dbus_string_lock): new compact function to free up allocated memory that is no longer used. * dbus/dbus-message.c (load_message): call _dbus_string_compact on the message loader buffer. * dbus/dbus-transport-socket.c (do_reading, do_writing): call _dbus_string_compact on the incoming/outgoing "encoded" buffers. * dbus/dbus-string-util.c (_dbus_string_test): add a few tests for string compacting.