summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* HACKING: add more explicit git branch/tag instructionsRyan Lortie2007-09-132-7/+13
|
* migrate from cvs to git (cvs2svn -> git-svnimport).Ryan Lortie2007-09-1313-45/+27
| | | | | | | | | | | 2007-09-13 Ryan Lortie <desrt@desrt.ca> migrate from cvs to git (cvs2svn -> git-svnimport). * HACKING: update release/branch/tag instructions * */.cvsignore: rename to .gitignore also, clean up tags and branch names to conform to HACKING
* 2007-08-17 William Jon McCann <mccann@jhu.edu>Havoc Pennington2007-08-172-0/+6
| | | | * update-dbus-docs.sh: upload DTD to server
* 2007-08-17 Havoc Pennington <hp@redhat.com>Havoc Pennington2007-08-176-135/+160
| | | | | | | | | | | | | | | * tools/dbus-launch-x11.c (set_address_in_x11): fix from Michael Lorenz to use long not int with XChangeProperty format 32 * dbus/dbus-sysdeps-util-unix.c (_dbus_write_pid_to_file_and_pipe): factor this out, and use the same code in _dbus_become_daemon (where the parent writes the pid file and to the pid pipe) and in bus_context_new (where the daemon writes its own pid file and to its own pid pipe) * bus/bus.c (bus_context_new): close the pid pipe after we print to it. Also, don't write the pid to the pipe twice when we fork, someone reported this bug a long time ago.
* 2007-08-03 Havoc Pennington <hp@redhat.com>Havoc Pennington2007-08-035-2/+175
| | | | | | | | | | | | * configure.in: add major/minor/micro version number AC_SUBST * dbus/dbus-arch-deps.h.in (DBUS_MAJOR_VERSION, DBUS_MINOR_VERSION, DBUS_MICRO_VERSION, DBUS_VERSION_STRING, DBUS_VERSION): collection of macros to get version of library we are compiled against. * dbus/dbus-misc.c (dbus_get_version): new function, to get version of library we are linked against at runtime.