From b0e260cd15f5d95f501eba254a803f180d547174 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 18 Feb 2005 18:18:32 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'dbus-0.23.2'. --- ChangeLog | 1136 +---------------------------------------------- NEWS | 14 + bus/policy.c | 5 +- bus/session.conf.in | 2 - configure.in | 66 +-- dbus/dbus-connection.c | 11 +- dbus/dbus-server-unix.c | 8 +- dbus/dbus-transport.c | 8 +- glib/dbus-gproxy.c | 637 ++++++++------------------ mono/Connection.cs | 6 +- mono/Service.cs | 22 +- 11 files changed, 247 insertions(+), 1668 deletions(-) diff --git a/ChangeLog b/ChangeLog index bf719830..44e1f7fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,332 +1,19 @@ -2005-02-17 Colin Walters - - * glib/dbus-gobject.h: Don't export - _dbus_glib_marshal_dbus_message_to_gvalue_array. - - * glib/dbus-gobject.c (_dbus_glib_marshal_dbus_message_to_gvalue_array): Do rename. - (invoke_object_method): Handle it. - - * glib/dbus-gproxy.c (marshal_dbus_message_to_g_marshaller): - Handle rename. - -2005-02-17 Colin Walters - - * bus/.cvsignore, doc/.cvsignore - * test/data/valid-service-files/.cvsignore, test/glib/.cvsignore: - Update. - -2005-02-17 Colin Walters - - * dbus/dbus-protocol.h (DBUS_SERVICE_ORG_FREEDESKTOP_DBUS): - Rename to DBUS_SERVICE_DBUS. - (DBUS_PATH_ORG_FREEDESKTOP_DBUS): Rename to DBUS_PATH_DBUS. - (DBUS_PATH_ORG_FREEDESKTOP_LOCAL): Rename to DBUS_PATH_LOCAL. - Change the value from "org.freedesktop.Local" - to "org.freedesktop.DBus.Local". - (DBUS_INTERFACE_ORG_FREEDESKTOP_DBUS): Rename to DBUS_INTERFACE_DBUS. - (DBUS_INTERFACE_ORG_FREEDESKTOP_INTROSPECTABLE): Rename to - DBUS_INTERFACE_INTROSPECTABLE. - Change the value from "org.freedesktop.Introspectable" - to "org.freedesktop.DBus.Introspectable". - (DBUS_INTERFACE_ORG_FREEDESKTOP_PROPERTIES): Rename to - DBUS_INTERFACE_PROPERTIES. - Change the value from "org.freedesktop.Properties" - to "org.freedesktop.DBus.Properties". - (DBUS_INTERFACE_ORG_FREEDESKTOP_PEER): Rename to - DBUS_INTERFACE_PEER. - Change the value from "org.freedesktop.Peer" - to "org.freedesktop.DBus.Peer". - (DBUS_INTERFACE_ORG_FREEDESKTOP_LOCAL): - DBUS_INTERFACE_LOCAL. - Change the value from "org.freedesktop.Local" - to "org.freedesktop.DBus.Local". - - All other users of those constants have been changed. - - * bus/driver.c (bus_driver_handle_introspect): Use constants. - - * glib/dbus-gobject.c (handle_introspect): Use constants. - - * doc/dbus-faq.xml, doc/dbus-specification.xml: Update for rename. - -2005-02-17 Colin Walters - - * glib/dbus-gparser.c (struct Parser): Add in_annotation boolean. - (parse_node, parse_interface, parse_method, parse_signal) - (parse_property, parse_annotation): Lose if we're currently in an - annotation. - (parse_annotation): New function. - (parser_start_element, parser_end_element): Handle annotation. - (parse_method, parse_interface): Remove support for c_name attribute, - switch to annotations. - - * glib/dbus-gidl.h (interface_info_get_binding_names) - (method_info_get_binding_names) - (interface_info_get_binding_name, method_info_get_binding_name) - (interface_info_set_binding_name, method_info_set_binding_name): - Remove. - (interface_info_get_annotations, method_info_get_annotations) - (interface_info_get_annotation, method_info_get_annotation) - (interface_info_add_annotation, method_info_add_annotation): - Prototype. - - * glib/dbus-gidl.c (struct InterfaceInfo): Substitute "annotations" - for "bindings". - (struct MethodInfo): Ditto. - Straightfoward conversion of binding methods into annotation methods - as prototyped. - - * glib/dbus-glib-tool.c (pretty_print): Print annotations. - - * glib/dbus-binding-tool-glib.h (DBUS_GLIB_ANNOTATION_C_SYMBOL): Define. - - * glib/dbus-binding-tool-glib.c (gather_marshallers, generate_glue): - Use new annotation API. - - * doc/introspect.dtd: Fix a number of DTD syntax errors. Add - annotation element. - - * doc/dbus-specification.xml: Discuss introspection annotations, - include list of well-known annotations. - - * test/glib/test-service-glib.xml: Make validate against new DTD. - -2005-02-17 Colin Walters - - This patch is based on initial work from - Paul Kuliniewicz . - - * glib/dbus-gvalue.c (dbus_gvalue_init): New function; move - initialization of GValue from dbus type to here. - (dbus_gvalue_genmarshal_name_from_type): New function; generates a string - for the "glib-genmarshal" program from a DBus type. - (dbus_gvalue_binding_type_from_type): New function; turns a DBus type - into the C name for it we use in the glib bindings. - (dbus_gvalue_ctype_from_type): New function; maps a DBus type into a - glib C type (not GValue). - (dbus_gvalue_demarshal): invoke dbus_gvalue_init. - - * glib/dbus-gutils.c (_dbus_gutils_wincaps_to_uscore): Moved here - from dbus-gobject.c. - - * glib/dbus-gutils.h: Prototype it. - - * glib/dbus-gproxy.c: Include new dbus-gobject.h. - (marshal_dbus_message_to_g_marshaller): Use new shared function - dbus_glib_marshal_dbus_message_to_gvalue_array. - - * glib/dbus-gparser.c (parse_interface, parse_method): Handle c_name attribute. - Will be changed once we have annotations. - - * glib/dbus-gobject.c: Change info_hash_mutex from GStaticMutex to - GStaticRWLock. Callers updated. - (wincaps_to_uscore): Move to dbus-gutils.c. Callers updated. - (string_table_next): New function for iterating over zero-terminated - string value array. - (string_table_lookup): New function; retrieves specific entry in - array. - (get_method_data): New function; look up method data in object data chunk. - (object_error_domain_prefix_from_object_info) - (object_error_code_from_object_info): New functions, but not implemented yet. - (method_interface_from_object_info): New function; retrieve interface name. - (method_name_from_object_info): New function; retrieve method name. - (method_arg_info_from_object_info): New function; retrieve argument data. - (arg_iterate): New function; iterates over serialized argument data. - (method_dir_signature_from_object_info): New function; returns a - GString holding type signature for arguments for just one - direction (input or output). - (method_input_signature_from_object_info) - (method_output_signature_from_object_info): New functions. - (dbus_glib_marshal_dbus_message_to_gvalue_array): New shared function; - converts dbus message arguments into a GValue array. Used for both - signal handling and method invocation. - (struct DBusGlibWriteIterfaceData): New utility structure. - (write_interface): New function; generate introspection XML for - an interface. - (introspect_interfaces): New function; gathers all interface->methods, - generates introspection XML for them. - (handle_introspect): Invoke introspect_interfaces. - (get_object_property): Be sure to zero-initalize stack-allocated GValue. - (lookup_object_and_method): New function; examines an incoming message - and attempts to match it up (via interface, method name, and argument - signature) with a known object and method. - (gerror_domaincode_to_dbus_error_name): New function; converts a - GError domain and code into a DBus error name. Needs GError data - added to object introspection to work well. - (gerror_to_dbus_error_message): Creates a DBusMessage error return from - GError. - (invoke_object_method): New function to invoke an object method - looked up via lookup_object_and_method. Parses the incoming - message, turns it into a GValue array, then invokes the marshaller - specified in the DBusGMethodInfo. Creates a new message with - either return values or error message as appropriate. - (gobject_message_function): Invoke lookup_object_and_method and - invoke_object_method. - - * glib/dbus-glib-tool.c: Include dbus-binding-tool-glib.h. - (enum DBusBindingOutputMode): New enum for binding output modes. - (pretty_print): Print binding names. - (dbus_binding_tool_error_quark): GError bits. - (version): Fix typo. - (main): Create GIOChannel for output. Parse new --mode argument, - possible values are "pretty-print", "glib-server", "glib-client". - Use mode to invoke appropriate function. - - * glib/dbus-gobject.h: Prototype dbus_glib_marshal_dbus_message_to_gvalue_array. - - * glib/dbus-glib-tool.h: New header, just includes GError bits - for now. - - * glib/dbus-gidl.c (struct InterfaceInfo): Add bindings hashtable; - maps binding style to name. - (struct MethodInfo): Ditto. - (get_hash_keys, get_hash_key): Utility function, returns keys for - a GHashTable. - (interface_info_new, method_info_new): Initialize bindings. - (interface_info_unref, method_info_unref): Destroy bindings. - (method_info_get_binding_names, method_info_get_binding_name) - (interface_info_get_binding_names, interface_info_get_binding_name): - Functions for retrieving binding names. - (method_info_set_binding_name, interface_info_set_binding_name): - Functions for setting binding names. - - * glib/dbus-binding-tool-glib.h: New file, has prototypes - for glib binding generation. - - * glib/dbus-binding-tool-glib.c: New file, implements server-side - and client-side glib glue generation. - - * glib/Makefile.am (dbus_binding_tool_SOURCES): Add - dbus-binding-tool-glib.c, dbus-binding-tool-glib.h, - dbus-glib-tool.h. - - * dbus/dbus-glib.h (struct DBusGMethodMarshaller): Remove in favor - of using GClosureMarshal directly. - (struct DBusGObjectInfo): Add n_infos member. - - * test/glib/test-service-glib.xml: New file; contains introspection data - for MyTestObject used in test-service-glib.c. - - * test/glib/test-service-glib.c (enum MyObjectError): New GError enum. - (my_object_do_nothing, my_object_increment, my_object_throw_error) - (my_object_uppercase, my_object_many_args): New test methods. - (main): Use dbus_g_object_class_install_info to include generated object - info. - - * test/glib/Makefile.am: Generate server-side glue for test-service-glib.c, - as well as client-side bindings. - - * test/glib/test-dbus-glib.c: Include test-service-glib-bindings.h. - (main): Activate TestSuiteGLibService; test invoke a bunch of its methods - using both the dbus_gproxy stuff directly as well as the generated bindings. - -2005-02-15 Havoc Pennington - - * dbus/dbus-connection.c (dbus_connection_dispatch): always - complete a pending call, don't run filters first. - - * glib/dbus-gproxy.c (dbus_g_proxy_end_call): change to use - dbus_pending_call_steal_reply - - * dbus/dbus-pending-call.c (dbus_pending_call_block): just call - _dbus_connection_block_pending_call - (dbus_pending_call_get_reply): change to steal_reply and return a - ref +2005-02-18 Joe Shaw + + * NEWS: Update for 0.23.2 + + * configure.in: Release 0.23.2 - * dbus/dbus-connection.c - (dbus_connection_send_with_reply_and_block): port to work in terms - of DBusPendingCall - (_dbus_connection_block_pending_call): replace block_for_reply - with this - -2005-02-14 Havoc Pennington - - * dbus/dbus-userdb-util.c (_dbus_user_database_lookup_group): - properly handle looking up group information by name; fix - from j@bootlab.org - -2005-02-13 Havoc Pennington - - * dbus/dbus-connection.c (dbus_connection_return_message) - (dbus_connection_borrow_message): hold dispatch lock while message - is outstanding - (_dbus_connection_block_for_reply): hold dispatch lock while we - block for the reply, so nobody steals our reply - (dbus_connection_pop_message): hold the dispatch lock while we - pluck the message - -2005-02-13 Havoc Pennington - - * dbus/dbus-connection.c (_dbus_connection_acquire_dispatch) - (_dbus_connection_release_dispatch) - (_dbus_connection_acquire_io_path) - (_dbus_connection_release_io_path): make the mutex and condvar - control access to the "acquired" flag. Drop the connection lock - while waiting on the condvar. Hopefully these are baby steps in - roughly the right direction. - -2005-02-13 Havoc Pennington - - * dbus/dbus-connection.c: use separate mutexes for the condition - variables; this is some kind of baseline for sanity, but the - condition variables still aren't used correctly afaict - -2005-02-13 Havoc Pennington - - * dbus/dbus-object-tree.c (handle_default_introspect_and_unlock): - fix a double-unlock - - * dbus/dbus-connection.c - (_dbus_connection_detach_pending_call_unlocked): add this - - Initial semi-correct pass through to fix thread locking; there are - still some issues with the condition variable paths I'm pretty - sure - - * dbus/dbus-server.c: add a mutex on DBusServer and appropriate - lock/unlock calls - - * dbus/dbus-connection.c (_dbus_connection_do_iteration_unlocked): - rename to add _unlocked - (struct DBusConnection): move "dispatch_acquired" and - "io_path_acquired" to use only one bit each. - (CONNECTION_LOCK, CONNECTION_UNLOCK): add checks with !DBUS_DISABLE_CHECKS - (dbus_connection_set_watch_functions): hacky fix to reentrancy - (_dbus_connection_add_watch, _dbus_connection_remove_watch) - (_dbus_connection_toggle_watch, _dbus_connection_add_timeout) - (_dbus_connection_remove_timeout) - (_dbus_connection_toggle_timeout): drop lock when calling out to - user functions; done in a hacky/bad way. - (_dbus_connection_send_and_unlock): add a missing unlock - (_dbus_connection_block_for_reply): add a missing unlock - - * dbus/dbus-transport.c (_dbus_transport_get_is_authenticated): - drop lock in a hacky probably unsafe way to call out to user - function - -2005-02-12 Havoc Pennington - - * tools/dbus-tree-view.c (info_set_func_text): display more - details on args - - * bus/driver.c (bus_driver_handle_list_services): list the bus - driver +2005-02-16 Joe Shaw - * glib/dbus-gparser.c (parse_arg): generate an arg name if none is supplied + * dbus/dbus-connection-internal.h, dbus/dbus-connection.[ch], + dbus/dbus-pending-call.[ch], dbus/dbus-server-protected.h, + dbus/dbus-server-unix.c, dbus/dbus-server.c, + dbus/dbus-transport-unix.c, dbus/dbus-transport.c: Backport + a ton of thread-related fixes from HEAD to this branch. - * glib/dbus-gidl.c (signal_info_get_n_args): new function - (method_info_get_n_args): new function - -2005-02-12 Havoc Pennington - - * bus/driver.c (bus_driver_handle_introspect): add introspection - for bus driver - -2005-02-12 Havoc Pennington - - * bus/driver.c: put the signature of each bus driver method in the - table of handlers and check it on incoming calls; this isn't - really useful, but going to add introspect support in a minute. + * glib/dbus-gproxy.c: Update dbus_pending_call_get_reply() to + dbus_pending_call_steal_reply(). 2005-02-11 Joe Shaw @@ -338,91 +25,11 @@ * mono/Service.cs: Remove the code, add code which calls the methods now on the Connection class. -2005-02-11 John (J5) Palmieri - - * python/dbus.py (class Sender): added to support dbus signals better - (Bus::add_signal_receiver): added expand_args parameter which defaults - to True. When expand args is True the signal handler will pass the - message arguments as parameters to the signal handler. If False - revert to previous behavior where the signal handler must get the - argument list from the message. This is to help port applications - like HAL that have a tendancy to send variable length argument lists. - self._match_rule_to_receivers is now a dict of dicts. - (Bus::remove_signal_receiver): pop handler off the dict intead of - removing it from a list - (Bus::_signal_func): change signal handlers so that interface, - signal_name, service, path and message are packed into a Sender - object and that is passed to the handler. If expand_args is True - extract the args list from the message and append it to the parameter - list - - * python/dbus_bindings.pyx.in (class Signature): added to support - signiature types - (MessageIter::__init__): changed iteration limit to match D-BUS - (MessageIter::get*): added INT16, UINT16, SIGNATURE, DICT_ENTRY, - STRUCT and VARIENT type support - (MessageIter::python_value_to_dbus_sig): made recursive to support - recursive types - (MessageIter::append*): added Signature, dict, tuple - support - - * python/examples/example-client.py: added examples of getting tuples - and dicts - - * python/examples/example-service.py: added examples of sending tuples - and dicts - - * python/examples/example-signal-recipient.py: Fixed to handle new - signal callback format - -2005-02-10 Havoc Pennington - - * test/glib/test-dbus-glib.c (main): fix so this test doesn't fail - (call dbus_g_proxy_add_signal) - - * dbus/dbus-server-unix.c (_dbus_server_new_for_tcp_socket): - escape the hostname - (_dbus_server_new_for_domain_socket): escape the path - - * dbus/dbus-address.c (dbus_address_escape_value): new - (dbus_address_unescape_value): new - (dbus_parse_address): unescape values - - * dbus/dbus-string.c (_dbus_string_append_byte_as_hex): new function - - * doc/dbus-specification.xml: explain how to escape values in - addresses - -2005-02-10 Havoc Pennington - - * dbus/dbus-message-factory.c (generate_special): modify test to - avoid using a non-basic dict key - - * dbus/dbus-marshal-validate-util.c: add test for the below - - * doc/dbus-specification.xml: require that dict keys are a basic - type - - * dbus/dbus-marshal-validate.c - (_dbus_validate_signature_with_reason): require that dict key is a - basic type - -2005-02-10 Havoc Pennington - - * dbus/dbus-object-tree.c (handle_default_introspect_and_unlock): - change to be _and_unlock instead of _unlocked - - * dbus/dbus-connection.c - (_dbus_connection_send_preallocated_unlocked_no_update): rename to - have no_update so we can find this bug quickly in future - -2005-02-10 Havoc Pennington +2005-02-11 Joe Shaw - * dbus/dbus-message-util.c (verify_test_message): tests for string - array + * NEWS: Update for 0.23.1 - * dbus/dbus-message.c (dbus_message_append_args_valist): add - support for arrays of string/signature/path + * configure.in: Release 0.23.1 2005-02-10 Joe Shaw @@ -448,713 +55,14 @@ we don't get unmanaged code calling back into a GCed delegate. (RemoveFilter); Added. -2005-02-09 John (J5) Palmieri - - * dbus/dbus-message.c (dbus_message_iter_open_container): - - Removed check for iterator type being an array because - get_arg_type does not work with writer iterators - - Pass NULL to _dbus_type_writer_recurse if signiture is NULL - -2005-02-07 Havoc Pennington - - * doc/dbus-specification.xml: some more language cleanups; add - stuff about how to deal with invalid protocol and extension - points; add _ to allowed chars in auth commands; add EXTENSION_ - auth command prefix - -2005-02-06 Havoc Pennington - - * s/expected/required/ in a couple places for clarity - -2005-02-07 Colin Walters - - * bus/selinux.c (bus_selinux_allows_send): Handle NULL for - sender or proposed_recipient. - -2005-02-06 Havoc Pennington - - * dbus/dbus-message-factory.c (generate_special): more tests - - * dbus/dbus-marshal-validate.c (validate_body_helper): detect - array length that exceeds the maximum - -2005-02-05 Havoc Pennington - - * dbus/dbus-message-factory.c (generate_special): more test cases, - increasing coverage - - * dbus/dbus-marshal-validate.c (validate_body_helper): return the - reason why a signature was invalid - - * dbus/dbus-marshal-header.c (load_and_validate_field): fix to - skip the length of the string before we look at it in validation - - * dbus/dbus-string-util.c (_dbus_string_test): add tests for - equal_substring - - * dbus/dbus-message.c (_dbus_message_loader_new): default - max_message_length to DBUS_MAXIMUM_MESSAGE_LENGTH - -2005-02-05 Havoc Pennington - - * dbus/dbus-marshal-validate.c (validate_body_helper): fix crash - if the signature of a variant was empty - (_dbus_validate_signature_with_reason): catch "(a)" (array inside - struct with no element type) - - * dbus/dbus-message-factory.c (generate_uint32_changed): add more - mangled messages to break things - -2005-02-04 Havoc Pennington - - * glib/dbus-gproxy.c (dbus_g_proxy_disconnect_signal): use - g_quark_try_string() so it actually can return 0 - (dbus_g_proxy_connect_signal): ditto - -2005-02-04 Havoc Pennington - - * glib/dbus-gproxy.c (dbus_g_proxy_emit_remote_signal): fix a - bogus warning - (tristring_from_message): assert cleanly on null path/interface - (should not be possible though I decided later) - (dbus_g_proxy_dispose): move proxy manager unregistration here - (DBUS_G_PROXY_DESTROYED): add this macro, and use it in a bunch of - g_return_if_fail() checks - -2005-02-04 Havoc Pennington - - * doc/Makefile.am (EXTRA_DIST): add DTDs to makefile - - * doc/introspect.dtd: add introspect.dtd from David A. Wheeler - (with some minor changes) - - * doc/dbus-specification.xml: add deprecated attribute to - introspection format - 2005-01-31 Havoc Pennington + + * bus/policy.c (bus_policy_allow_user): change default "user is + allowed" to be "user has same uid as the bus itself"; any + allow/deny rules will override. - * glib/dbus-gproxy.c: rewrite how signals work again, this time I - think it's sort of right - -2005-01-30 Havoc Pennington - - * tools/dbus-viewer.c: kind of half-ass hook up the option menu. - -2005-01-30 Havoc Pennington - - * tools/dbus-names-model.c: dynamically watch NameOwnerChanged - - * autogen.sh: change to autotools 1.9 - - * glib/dbus-gproxy.c: completely change how signals work - (dbus_g_proxy_add_signal): new function to specify signature of a - signal - (dbus_g_proxy_emit_received): marshal the dbus message to GValues, - and g_warning if the incoming message has the wrong signature. - -2005-01-30 Havoc Pennington - - * tools/dbus-names-model.c (have_names_notify): fix this - - * dbus/dbus-message.c (_dbus_message_iter_get_args_valist): clean - up the string array handling a bit - -2005-01-30 Havoc Pennington - - * glib/dbus-glib.c (dbus_g_pending_call_set_notify): new function - (dbus_g_pending_call_cancel): new function - - * dbus/dbus-glib.h: move GType decls for connection/message here; - * dbus/dbus-glib.c: move all the g_type and ref/unref stuff in - here, just kind of rationalizing how we handle all that - - * tools/dbus-names-model.c: new file for a tree model listing the - services on a bus - - * tools/dbus-tree-view.c (model_new): use proper typing on the - model rows - -2005-01-30 Havoc Pennington - - * glib/dbus-gmain.c: add a custom GSource back that just checks - whether the message queue has anything in it; otherwise, there are - cases where we won't see messages in the queue since there was no - IO visible to the glib main loop - - * dbus/dbus-connection-internal.h (_DBUS_DEFAULT_TIMEOUT_VALUE): - increase default message timeout to 25 seconds - -2005-01-30 Havoc Pennington - - * test/glib/test-profile.c (no_bus_stop_server): remove the - warning about the g_warning that I just fixed - - * glib/dbus-gmain.c: rewrite the main loop stuff to avoid the - custom source, seems to be a lot easier to understand and work - better. - -2005-01-30 Havoc Pennington - - I think this main loop thing is conceptually broken, but here are - some band aids. I'll maybe rewrite it in a minute. - - * glib/dbus-gmain.c (add_timeout): timeout stuff doesn't use the - custom GSource, so don't pass it in; confusing - (gsource_server_finalize, gsource_connection_finalize): add - finalize handlers that remove all the watches. - -2005-01-30 Havoc Pennington - - * glib/dbus-gobject.c (introspect_properties): fix the XML - generated - - * dbus/dbus-message.c (dbus_message_unref): add an in_cache flag - which effectively detects the use of freed messages - - * glib/dbus-gobject.c (handle_introspect): modify and return the - reply message instead of the incoming message - - * dbus/dbus-object-tree.c (handle_default_introspect_unlocked): - gee, maybe it should SEND THE XML instead of just making a string - and freeing it again ;-) - - * tools/dbus-print-message.c (print_message): improve printing of - messages - - * configure.in: add debug-glib.service to the output - -2005-01-30 Havoc Pennington - - dbus-viewer introspected and displayed the bus driver - - * dbus/dbus-object-tree.c - (object_tree_test_iteration): add tests for a handler registered on "/" - - * dbus/dbus-object-tree.c - (_dbus_decompose_path): fix to handle path "/" properly - (run_decompose_tests): add tests for path decomposition - - * glib/dbus-gutils.c (_dbus_gutils_split_path): fix to handle "/" - properly - - * glib/dbus-gobject.c (handle_introspect): fix quotes - - * test/glib/run-test.sh: support launching the bus, then running - dbus-viewer - - * test/glib/test-service-glib.c (main): put in a trivial gobject - subclass and register it on the connection - - * bus/driver.c (bus_driver_handle_introspect): implement - introspection of the bus driver service - - * dbus/dbus-protocol.h: add #defines for the XML namespace, - identifiers, doctype decl - - * bus/driver.c (bus_driver_handle_get_service_owner): handle - attempts to get owner of DBUS_SERVICE_ORG_FREEDESKTOP_DBUS by - returning the service unchanged. - (bus_driver_handle_message): remove old check for reply_serial in - method calls, now the message type deals with that - (bus_driver_handle_message): handle NULL interface - - * glib/dbus-gproxy.c (dbus_g_proxy_get_bus_name): new function - - * glib/dbus-gloader-expat.c (description_load_from_string): allow - -1 for len - - * tools/dbus-viewer.c: add support for introspecting a service on - a bus - - * glib/dbus-gproxy.c (dbus_g_pending_call_ref): add - (dbus_g_pending_call_unref): add - -2005-01-29 Havoc Pennington - - * tools/dbus-tree-view.c: add support for displaying properties. - (run dbus-viewer with an introspect xml file as arg, then resize - the window so the tree elements show up, not sure what that is) - - * glib/dbus-gobject.c (handle_introspect): return - org.freedesktop.Properties and org.freedesktop.Introspectable - interfaces when we are introspected. - - * doc/dbus-specification.xml: allow empty interface name when - Get/Set a property - -2005-01-29 Havoc Pennington - - * glib/Makefile.am: rename dbus-glib-tool to dbus-binding-tool; - though it uses glib, it could be extended for any binding in - principle - - * glib/dbus-gobject.c (gobject_message_function): change to the - new way properties work - - * dbus/dbus-protocol.h: add the new interfaces - - * doc/dbus-specification.xml: document the introspection format, - Introspectable interface, and add an org.freedesktop.Properties - interface. - - * glib/dbus-gparser.c: add support for a element - - * glib/dbus-gidl.c: add PropertyInfo - - * glib/dbus-gobject.c (handle_introspect): put the outermost - outside the signal and property descriptions. - (introspect_properties): export properties as rather - than as method calls - -2005-01-28 Havoc Pennington - - * doc/TODO, doc/dbus-specification.xml: spec and TODO tweaks - related to authentication protocol - -2005-01-28 John (J5) Palmieri - - * python/dbus_bindings.pyx.in: Updated to handle new D-BUS type system - - BUS_ACTIVATION -> BUS_STARTER - - DBUS_BUS_ACTIVATION -> DBUS_BUS_STARTER - - class MessageIter (__init__): Added recursion checking - so we throw a nice error instead of just disconnecting from the - bus. - (get): Added arg_type parameter for recursion. - Removed the nil type - Added signiture type placeholder (not implemented) - Added struct type placeholder (not implemented) - Added varient type placeholder (not implemented) - Commented out dict type for now - (get_element_type): renamed from get_array_type - (get_*): changed to use the dbus_message_iter_get_basic API - (get_*_array): removed in favor of recursive get_array method - (get_array): new recursive method which calls get to marshal - the elements of the array - (value_to_dbus_sig): New method returns the corrasponding - dbus signiture to a python value - (append): Comment out dict handling for now - Handle lists with the new recursive API - Comment out None handling for now - (append_nil): removed - (append_*): changed to use dbus_message_iter_append_basic API - (append_*_array): removed in favor of recursive append_array - method - (__str__): Make it easier to print out recursive iterators - for debugging - - class Message (__str__): moved type inspection to the - MessageIter class' __str__ method - (get_iter): Added an append parameter wich defaults to False - If True use the new API's to create an append iterator - - * python/dbus.py: Update to use new bindings API - - TYPE_ACTIVATION -> TYPE_STARTER - - class Bus (_get_match_rule): GetServiceOwner -> GetNameOwner - - class ActivationBus -> class StarterBus - - class RemoteObject (__call__): get an append iterator - - (_dispatch_dbus_method_call): get an append iterator - - class Object (emit_signal): get an append iterator - - * python/examples/: Fixed up the examples to work with the new API - -2005-01-28 Joe Shaw - - * configure.in: Bump version up to 0.30. - - * HACKING: Add a release item to bump the version number up after - a release. - -2005-01-28 Havoc Pennington - - * doc/dbus-specification.xml: update to describe 16-bit types and - dict entries - - * dbus/dbus-marshal-basic.c (_dbus_unpack_uint16): fix broken - assertion - - * dbus/dbus-protocol.h (DBUS_TYPE_DICT_ENTRY): add DICT_ENTRY as a - type - - * dbus/dbus-marshal-recursive.c: implement - -2005-01-27 Havoc Pennington - - * dbus/dbus-arch-deps.h.in: add 16/32-bit types - - * configure.in: find the right type for 16 and 32 bit ints as well - as 64 - - * dbus/dbus-protocol.h (DBUS_TYPE_INT16, DBUS_TYPE_UINT16): add - the 16-bit types so people don't have to stuff them in 32-bit or - byte arrays. - -2005-01-27 Havoc Pennington - - * dbus/dbus-message.c: byteswap the message if you init an - iterator to read/write from it - - * dbus/dbus-marshal-byteswap.c: new file implementing - _dbus_marshal_byteswap() - - * dbus/dbus-marshal-basic.c: add _dbus_swap_array() - -2005-01-26 Havoc Pennington - - * dbus/dbus-marshal-validate-util.c: break this out (and fix - build, apparently - nobody noticed?) - -2005-01-26 Havoc Pennington - - * dbus/dbus-marshal-recursive.h: remove todo comment - -2005-01-25 Joe Shaw - - * Land the mono binding changes to conform to the new APIs. - - * mono/Makefile.am: Remove Custom.cs, DBusType/Custom.cs, - DBusType/Dict.cs, and DBusType/Nil.cs from the build. - - * mono/Arguments.cs (GetCodeAsString): Added. Returns the dbus - type code as a string. - (InitAppending): Rename dbus_message_append_iter_init() to - dbus_message_iter_init_append(). - - * mono/BusDriver.cs: Rename ServiceEventHandler to - NameOwnerChangedHandler. Rename GetServiceOwner to GetOwner. - Rename ServiceOwnerChanged to NameOwnerChanged. - - * mono/Connection.cs: Rename BaseService to UniqueName, and the - underlying C call. - - * mono/Custom.cs: Removed. The CUSTOM type has been removed. - - * mono/Service.cs: Rename Exists to HasOwner, internally rename - dbus_bus_acquire_service() to dbus_bus_request_name(). - - * mono/DBusType/Array.cs (ctor): Use Type.GetElementType() instead - of Type.UnderlyingSystemType to get the correct element type for - the array. - (ctor): Update code for new APIs: use dbus_message_iter_recurse(), - dbus_message_get_{element|arg}_type() instead of - dbus_message_iter_init_array_iterator(). - (Append): Replace dbus_message_iter_append_array() with - dbus_message_iter_open_container() and - dbus_message_iter_close_container(). - - * mono/DBusType/Custom.cs, mono/DBusType/Nil.cs: Removed. These - types have been removed. - - * mono/DBusType/*.cs: Replace calls of - dbus_message_iter_get_[type]() to dbus_message_iter_get_basic(), - but specify the type in the DllImport extern declaration. Ditto - for dbus_message_iter_append_[type]() -> - dbus_message_iter_append_basic(). - - * mono/example/BusListener.cs: Update for ServiceEventHandler -> - NameOwnerChangedHandler. - -2005-01-25 John (J5) Palmieri - - * python/dbus_bindings.pyx.in: Rename of methods and bindings - - get_base_service -> get_unique_name - - bus_get_base_service -> bus_get_unique_name - - dbus_bus_get_base_service -> dbus_bus_get_unique_name - - ACTIVATION_REPLY_ACTIVATED -> DBUS_START_REPLY_SUCCESS - - ACTIVATION_REPLY_ALREADY_ACTIVE -> DBUS_START_REPLY_ALREADY_RUNNING - - bus_activate_service -> bus_start_service_by_name - - dbus_bus_activate_service -> dbus_bus_start_service_by_name - - bus_acquire_service -> bus_request_name - - dbus_bus_acquire_service -> dbus_bus_request_name - - bus_service_exists -> bus_name_has_owner - - dbus_bus_service_exists -> dbus_bus_name_has_owner - - * python/dbus.py: Rename of methods - - activate_service -> start_service_by_name - - bus_acquire_service -> bus_request_name - - ACTIVATION_REPLY_ACTIVATED -> START_REPLY_SUCCESS - - ACTIVATION_REPLY_ALREADY_ACTIVE -> START_REPLY_ALREADY_RUNNING - - -2005-01-24 Joe Shaw - - * dbus/dbus-connection.c (dbus_connection_dispatch): Print out the - signature for the method that can't be found. - - * dbus/dbus-message.c (dbus_message_iter_init): To check to see if - the message has any arguments, we need to call - _dbus_type_reader_get_current_type(), not - _dbus_type_reader_has_next(). - -2005-01-24 Havoc Pennington - - * dbus/dbus-message-factory.c: more testing of message validation - - * dbus/dbus-protocol.h (DBUS_MINIMUM_HEADER_SIZE): move to this - header - -2005-01-23 Havoc Pennington - - * dbus/dbus-message-factory.c, dbus/dbus-message-util.c: - get this all working, not many tests in the framework yet though - -2005-01-22 Havoc Pennington - - * doc/dbus-faq.xml, doc/dbus-tutorial: add a FAQ and update - tutorial, based on work from David Wheeler. - -2005-01-21 Havoc Pennington - - * dbus/dbus-bus.c: add more return_if_fail checks - - * dbus/dbus-message.c (load_message): have the "no validation" - mode (have to edit the code to toggle the mode for now though) - - * dbus/dbus-marshal-header.c (_dbus_header_load): have a mode that - skips all validation; I want to use this at least for benchmark - baseline, I'm not sure if it should be a publicly-available switch. - -2005-01-21 Havoc Pennington - - * glib/dbus-gmain.c: don't put the GLib bindings in the same - toplevel doxygen group as the low-level API stuff - - * dbus/dbus.h: note that libdbus is the low-level API - -2005-01-20 Havoc Pennington - - * update-dbus-docs.sh: script to update docs on the web site, only - works for me though. neener. - -2005-01-20 Havoc Pennington - - * dbus/dbus-sysdeps.c (_dbus_poll): amazingly, trying to compile - code can reveal bugs in it - -2005-01-20 Havoc Pennington - - * dbus/dbus-sysdeps.c (_dbus_poll): fix several bugs in the - select() version, patches from Tor Lillqvist - -2005-01-20 Havoc Pennington - - * doc/dbus-tutorial.xml: replace > with > - - * bus/services.c (bus_registry_acquire_service): validate the name - and return a better error if it's no good. - - * doc/dbus-specification.xml: note NO_AUTO_START change - - * dbus/dbus-protocol.h (DBUS_HEADER_FLAG_NO_AUTO_START): change - from AUTO_START, we're toggling the default - - * bus/dispatch.c: adapt the tests to change of auto-start default - -2005-01-18 Havoc Pennington - - * rename dbus-daemon-1 to dbus-daemon throughout - -2005-01-18 Havoc Pennington - - * Throughout, grand renaming to strip out the use of "service", - just say "name" instead (or "bus name" when ambiguous). Did not - change the internal code of the message bus itself, only the - programmer-facing API and messages. - - * doc/dbus-specification.xml: further update the message bus section - - * bus/config-parser.c (all_are_equiv): fix bug using freed string - in error case - -2005-01-17 Havoc Pennington - - * dbus/dbus-types.h: remove 16-bit types since we don't use them - ever - - * dbus/dbus-marshal-validate.c (_dbus_validate_path): disallow any - "invalid name character" not only non-ASCII - - * doc/dbus-specification.xml: further update spec, message bus - parts are still out-of-date but the marshaling etc. stuff is now - accurate-ish - -2005-01-17 Havoc Pennington - - * doc/dbus-specification.xml: partially update spec - -2005-01-17 Havoc Pennington - - * Throughout, align variant bodies according to the contained - type, rather than always to 8. Should save a fair bit of space in - message headers. - - * dbus/dbus-marshal-validate.c (_dbus_validate_body_with_reason): - fix handling of case where p == end - - * doc/TODO: remove the dbus_bool_t item and variant alignment items - -2005-01-17 Havoc Pennington - - * dbus/dbus-types.h: hardcode dbus_bool_t to 32 bits - - * Throughout: modify DBUS_TYPE_BOOLEAN to be a 32-bit type instead - of an 8-bit type. Now dbus_bool_t is the type to use whenever you - are marshaling/unmarshaling a boolean. - -2005-01-16 Havoc Pennington - - This is about it on what can be disabled/deleted from libdbus - easily, back below 150K anyhow. Deeper cuts are more work than - just turning the code off as I've done here. - - * dbus/dbus-marshal-basic.c (_dbus_pack_int32): we don't need the - signed int convenience funcs - - * dbus/dbus-internals.c (_dbus_verbose_real): omit when not in - verbose mode - - * dbus/dbus-string-util.c, dbus/dbus-string.c: more breaking - things out of libdbus - - * dbus/dbus-sysdeps.c, dbus/dbus-sysdeps-util.c: same - - * dbus/dbus-hash.c: purge the TWO_STRINGS crap (well, make it - tests-enabled-only, though it should probably be deleted) - - * dbus/dbus-message-util.c: same stuff - - * dbus/dbus-auth-util.c: same stuff - -2005-01-16 Havoc Pennington - - * dbus/dbus-userdb-util.c: split out part of dbus-userdb.c - - * dbus/dbus-sysdeps.c (_dbus_uid_from_string): move here to pave - way for stripping down dbus-userdb.c stuff included in libdbus. - Rename _dbus_parse_uid for consistency. - -2005-01-16 Havoc Pennington - - * dbus/dbus-internals.c (_dbus_real_assert): print the function - name the assertion failed in - - * dbus/dbus-internals.h (_dbus_return_if_fail) - (_dbus_return_val_if_fail): assert that the name of the function - containing the check doesn't start with '_', since we only want to - use checks on public functions - - * dbus/dbus-connection.c (_dbus_connection_ref_unlocked): change - checks to assertions - - * dbus/dbus-marshal-header.c (_dbus_header_set_field_basic): - change checks to asserts for private function - - * dbus/dbus-message.c (_dbus_message_set_serial): checks - to asserts for private function - - * dbus/dbus-marshal-recursive.c (skip_one_complete_type): remove - broken assertion that was breaking make check - (_dbus_type_reader_array_is_empty): remove this rather than fix - it, was only used in assertions - -2005-01-16 Havoc Pennington - - * test/unused-code-gc.py: hacky script to find code that's used - only by the bus (not libdbus) or used only by tests or not used at - all. It has some false alarms, but looks like we can clean up a - lot of size from libdbus. - - * dbus/dbus-sysdeps.c, dbus/dbus-sysdeps-utils.c, - dbus/Makefile.am: initially move 10K of binary size out of libdbus - -2005-01-16 Havoc Pennington - - * Add and fix docs according to Doxygen warnings throughout - source. - - * dbus/dbus-marshal-recursive.c - (_dbus_type_reader_array_is_empty): change this to just call - array_reader_get_array_len() and make it static - - * dbus/dbus-message.c (dbus_message_iter_get_element_type): rename - from get_array_type - (dbus_message_iter_init_append): rename from append_iter_init - - * dbus/dbus-marshal-recursive.c - (_dbus_type_reader_get_element_type): rename from - _dbus_type_reader_get_array_type - -2005-01-15 Havoc Pennington - - * test/glib/test-profile.c (with_bus_server_filter): fix crash - - * dbus/dbus-marshal-basic.c (_dbus_unpack_uint32): inline as macro - when DBUS_DISABLE_ASSERT - (_dbus_marshal_set_basic): be sure we align for the string length - - * dbus/dbus-marshal-recursive.c (skip_one_complete_type): make - this look faster - - * dbus/dbus-string.c (_dbus_string_get_const_data_len): add an - inline macro version - (_dbus_string_set_byte): provide inline macro version - -2005-01-15 Havoc Pennington - - * Land the new message args API and type system. - - This patch is huge, but the public API change is not - really large. The set of D-BUS types has changed somewhat, - and the arg "getters" are more geared toward language bindings; - they don't make a copy, etc. - - There are also some known issues. See these emails for details - on this huge patch: - http://lists.freedesktop.org/archives/dbus/2004-December/001836.html - http://lists.freedesktop.org/archives/dbus/2005-January/001922.html - - * dbus/dbus-marshal-*: all the new stuff - - * dbus/dbus-message.c: basically rewritten - - * dbus/dbus-memory.c (check_guards): with "guards" enabled, init - freed blocks to be all non-nul bytes so using freed memory is less - likely to work right - - * dbus/dbus-internals.c (_dbus_test_oom_handling): add - DBUS_FAIL_MALLOC=N environment variable, so you can do - DBUS_FAIL_MALLOC=0 to skip the out-of-memory checking, or - DBUS_FAIL_MALLOC=10 to make it really, really, really slow and - thorough. - - * qt/message.cpp: port to the new message args API - (operator<<): use str.utf8() rather than str.unicode() - (pretty sure this is right from the Qt docs?) - - * glib/dbus-gvalue.c: port to the new message args API - - * bus/dispatch.c, bus/driver.c: port to the new message args API - - * dbus/dbus-string.c (_dbus_string_init_const_len): initialize the - "locked" flag to TRUE and align_offset to 0; I guess we never - looked at these anyhow, but seems cleaner. - - * dbus/dbus-string.h (_DBUS_STRING_ALLOCATION_PADDING): - move allocation padding macro to this header; use it to implement - (_DBUS_STRING_STATIC): ability to declare a static string. - - * dbus/dbus-message.c (_dbus_message_has_type_interface_member): - change to return TRUE if the interface is not set. - - * dbus/dbus-string.[hc]: move the D-BUS specific validation stuff - to dbus-marshal-validate.[hc] - - * dbus/dbus-marshal-basic.c (_dbus_type_to_string): move here from - dbus-internals.c - - * dbus/Makefile.am: cut over from dbus-marshal.[hc] - to dbus-marshal-*.[hc] - - * dbus/dbus-object-tree.c (_dbus_decompose_path): move this - function here from dbus-marshal.c + * bus/session.conf.in: don't allow all users, since now by default + the user that ran the bus can connect. 2005-01-12 Joe Shaw diff --git a/NEWS b/NEWS index a6c25ea3..07bfae88 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,17 @@ +D-BUS 0.23.2 (18 Feb 2005) +=== +- shuffle some code around in the mono bindings to deterministically + finalize classes so that delegates are unregistered correctly. +- backport a bunch of thread locking-related fixes from HEAD. + +D-BUS 0.23.1 (11 Feb 2005) +=== +- fix a bug in which the bus daemon wouldn't recognize that a service + owner quit +- fix a bug in the mono bindings that would cause unmanaged code to + call back into a delegate that had been garbage collected and + crashed. + D-BUS 0.23 (11 Jan 2005) === diff --git a/bus/policy.c b/bus/policy.c index 7759dfad..c0244bdc 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -453,8 +453,9 @@ bus_policy_allow_user (BusPolicy *policy, uid); return FALSE; } - - allowed = FALSE; + + /* Default to "user owning bus" or root can connect */ + allowed = uid == _dbus_getuid (); allowed = list_allows_user (allowed, &policy->default_rules, diff --git a/bus/session.conf.in b/bus/session.conf.in index 8b6d65f7..1a6dfda5 100644 --- a/bus/session.conf.in +++ b/bus/session.conf.in @@ -19,8 +19,6 @@ - -