1. 02 Dec, 2015 1 commit
  2. 24 Oct, 2014 1 commit
  3. 28 Jun, 2013 1 commit
  4. 21 Feb, 2012 1 commit
  5. 04 Jan, 2012 1 commit
    • Simon McVittie's avatar
      Revert all changes since a36d4918 · 5df8c3db
      Simon McVittie authored
      Someone seems to have merged part of master into 1.4. Again. Let's go
      back to the "last known good" point (the branch-point of some 1.4
      branches I had locally), then we can cherry-pick the changes that
      should have gone in.
      5df8c3db
  6. 19 Sep, 2011 1 commit
  7. 27 Apr, 2011 1 commit
  8. 01 Feb, 2011 1 commit
  9. 19 Mar, 2010 1 commit
  10. 14 Jul, 2009 1 commit
  11. 10 Jul, 2009 1 commit
  12. 20 May, 2009 1 commit
  13. 14 Jul, 2007 1 commit
  14. 08 Sep, 2006 1 commit
    • John Palmieri's avatar
      * bus/test-main.c (main): Initialize threading during tests · f61a63ce
      John Palmieri authored
      * dbus/dbus-connection.c (_dbus_connection_new_for_transport):
        Unlock connection on error
        (generate_local_error_message): static method for generating
        an error message when we don't have a message to reply to
        (_dbus_connection_block_pending_call): Send a disconnect error
        instead of just a timeout (NULL) when the bus gets disconnected
        while blocking for a reply.
      f61a63ce
  15. 06 Sep, 2006 1 commit
  16. 03 Nov, 2004 1 commit
  17. 02 Nov, 2004 1 commit
    • Colin Walters's avatar
      2004-11-02 Colin Walters <walters@verbum.org> · 73ffe59d
      Colin Walters authored
      	* bus/selinux.c (bus_selinux_init): Split into two functions,
      	bus_selinux_pre_init and bus_selinux_post_init.
      	(bus_selinux_pre_init): Just determine whether SELinux is
      	enabled.
      	(bus_selinux_post_init): Do everything else.
      
      	* bus/main.c (main): Call bus_selinux_pre_init before parsing
      	config file, and bus_selinux_post_init after.  This ensures that
      	we don't lose the policyreload notification thread that
      	bus_selinux_init created before forking previously.
      
      	* bus/test-main.c (test_pre_hook): Update for split.
      73ffe59d
  18. 23 Aug, 2004 1 commit
    • Colin Walters's avatar
      2004-08-23 Colin Walters <walters@redhat.com> · ee78f280
      Colin Walters authored
      	* bus/selinux.h: Prototype bus_selinux_get_policy_root.
      
      	* bus/selinux.c: Create a thread for policy reload notification.
      	(bus_selinux_get_policy_root): Implement.
      
      	Updated SELinux support from Matthew Rickard <mjricka@epoch.ncsc.mil>
      
      	* bus/config-parser.c (start_busconfig_child)
      	(bus_config_parser_content): Support SELinux-root relative
      	inclusion.
      
      	* configure.in <HAVE_SELINUX>: Add -lpthread.
      
      	* bus/test-main.c (test_pre_hook, test_post_hook): New.
      	(test_post_hook): Move memory checking into here.
      	(test_pre_hook, test_post_hook): Move SELinux checks in
      	here, but conditional on a DBUS_TEST_SELINUX environment
      	variable.  Unfortunately we can't run the SELinux checks
      	as a normal user, since they won't have any permissions
      	for /selinux.  So this will have to be tested manually
      	for now, until we have virtualization for most of
      	libselinux.
      ee78f280
  19. 10 Aug, 2004 1 commit
  20. 30 Jul, 2004 1 commit
    • Havoc Pennington's avatar
      2004-07-24 Havoc Pennington <hp@redhat.com> · 1e9b185b
      Havoc Pennington authored
      	SELinux support from Matthew Rickard <mjricka@epoch.ncsc.mil>
      
      	* bus/selinux.c, bus/selinux.h: new file encapsulating selinux
      	functionality
      
      	* configure.in: add --enable-selinux
      
      	* bus/policy.c (bus_policy_merge): add FIXME to a comment
      
      	* bus/main.c (main): initialize and shut down selinux
      
      	* bus/connection.c: store SELinux ID on each connection, to avoid
      	repeated getting of the string context and converting it into
      	an ID
      
      	* bus/bus.c (bus_context_get_policy): new accessor, though it
      	isn't used
      	(bus_context_check_security_policy): check whether the security
      	context of sender connection can send to the security context of
      	recipient connection
      
      	* bus/config-parser.c: add parsing for <selinux> and <associate>
      
      	* dbus/dbus-transport.c (_dbus_transport_get_unix_fd): to
      	implement dbus_connection_get_unix_fd()
      
      	* dbus/dbus-connection.c (dbus_connection_get_unix_fd): new
      	function, used by the selinux stuff
      1e9b185b
  21. 12 Mar, 2004 1 commit
    • Mikael Hallendal's avatar
      2004-03-12 Mikael Hallendal <micke@imendio.com> · dd79fc73
      Mikael Hallendal authored
      	* bus/activation.c:
      	- Added service file reloading.
      	  Each service files directory is kept in an hash table in
      	  BusActivation and each BusActivationEntry knows what .service-file it
      	  was read from. So when you try to activate a service the bus will
      	  check if it's been updated, removed or if new .service-files has
      	  been installed.
      	- Test code at the bottom for the service file reloading.
      	* bus/test-main.c: (main):
      	* bus/test.h:
      	- added service reloading test.
      	* dbus/dbus-sysdeps.c:
      	* dbus/dbus-sysdeps.h: (_dbus_delete_directory): Added.
      dd79fc73
  22. 02 Dec, 2003 1 commit
  23. 11 Oct, 2003 1 commit
    • Havoc Pennington's avatar
      2003-10-11 Havoc Pennington <hp@pobox.com> · 40751c84
      Havoc Pennington authored
      	* dbus/dbus-message.c (_dbus_message_test): add more test
      	coverage, but #if 0 for now since they uncover a bug
      	not fixed yet; I think in re_align_field_recurse()
      	(re_align_field_recurse): add FIXME about broken assertion
      
      	* dbus/dbus-sysdeps.c (_dbus_sysdeps_test): add more test coverage
      
      	* bus/connection.c: share a couple code bits with expirelist.c
      
      	* bus/expirelist.h, bus/expirelist.c: implement a generic
      	expire-items-after-N-seconds facility, was going to share between
      	expiring connections and replies, decided not to use for expiring
      	connections for now.
      
      	* bus/connection.c: add tracking of expected replies
      
      	* COPYING: include AFL 2.0 (still need to change all the file headers)
      40751c84
  24. 21 Sep, 2003 1 commit
    • Havoc Pennington's avatar
      2003-09-21 Havoc Pennington <hp@pobox.com> · a683a80c
      Havoc Pennington authored
      	Get matching rules mostly working in the bus; only actually
      	parsing the rule text remains. However, the client side of
      	"signal connections" hasn't been started, this patch is only the
      	bus side.
      
      	* dbus/dispatch.c: fix for the matching rules changes
      
      	* bus/driver.c (bus_driver_handle_remove_match)
      	(bus_driver_handle_add_match): send an ack reply from these
      	method calls
      
      	* glib/dbus-gproxy.c (dbus_gproxy_begin_call): fix order of
      	arguments, reported by Seth Nickell
      
      	* bus/config-parser.c (append_rule_from_element): support
      	eavesdrop=true|false attribute on policies so match rules
      	can be prevented from snooping on the system bus.
      
      	* bus/dbus-daemon-1.1.in: consistently use terminology "sender"
      	and "destination" in attribute names; fix some docs bugs;
      	add eavesdrop=true|false attribute
      
      	* bus/driver.c (bus_driver_handle_add_match)
      	(bus_driver_handle_remove_match): handle AddMatch, RemoveMatch
      	messages
      
      	* dbus/dbus-protocol.h (DBUS_SERVICE_ORG_FREEDESKTOP_BROADCAST): get
      	rid of broadcast service concept, signals are just always broadcast
      
      	* bus/signals.c, bus/dispatch.c, bus/connection.c, bus/bus.c:
      	mostly implement matching rules stuff (currently only exposed as signal
      	connections)
      a683a80c
  25. 14 Apr, 2003 1 commit
    • Havoc Pennington's avatar
      2003-04-14 Havoc Pennington <hp@redhat.com> · fe1cb3a9
      Havoc Pennington authored
      	* dbus/dbus-userdb.c: user database abstraction, mostly to get
      	caching, but at some point we might want to be able to use a
      	different database.
      
      	* bus/dispatch.c (bus_dispatch_sha1_test): add a test that uses
      	SHA1 conf file to test the sha1 auth mechanism, since the regular
      	test always uses EXTERNAL when available.
      
      	* configure.in,
      	test/data/valid-config-files/debug-allow-all-sha1.conf.in:
      	add conf file that requires use of sha1 auth
      fe1cb3a9
  26. 11 Apr, 2003 1 commit
    • Havoc Pennington's avatar
      2003-04-11 Havoc Pennington <hp@pobox.com> · 77eac31a
      Havoc Pennington authored
      	* test/decode-gcov.c: add "below average functions" to the
      	coverage report, and change how some of the code works.
      
      	* bus/test-main.c: bracket some stuff in DBUS_BUILD_TESTS so it's
      	not in the coverage stats.
      
      	* test/test-service.c (main): use _dbus_verbose not fprintf in a
      	couple places so running the test suite doesn't result in megaspam.
      77eac31a
  27. 06 Apr, 2003 1 commit
  28. 31 Mar, 2003 2 commits
    • Havoc Pennington's avatar
      2003-03-31 Havoc Pennington <hp@pobox.com> · 29c71168
      Havoc Pennington authored
      	* dbus/dbus-transport-unix.c (_dbus_transport_new_for_domain_socket)
      	(_dbus_transport_new_for_tcp_socket): these didn't need the "server"
      	argument since they are always client side
      
      	* dbus/dbus-server.c (dbus_server_get_address): new function
      
      	* bus/main.c (main): take the configuration file as an argument.
      
      	* test/data/valid-config-files/debug-allow-all.conf: new file to
      	use with dispatch.c tests for example
      
      	* bus/test-main.c (main): require test data dir
      
      	* bus/bus.c (bus_context_new): change this to take a
      	configuration file name as argument
      
      	* doc/config-file.txt (Elements): add <servicedir>
      
      	* bus/system.conf, bus/session.conf: new files
      
      	* dbus/dbus-bus.c (dbus_bus_get): look for system bus on
      	well-known socket if none set
      
      	* configure.in: create system.conf and session.conf
      29c71168
    • Havoc Pennington's avatar
      2003-03-30 Havoc Pennington <hp@pobox.com> · bc86794f
      Havoc Pennington authored
      	* bus/config-parser.c: hacking
      
      	* dbus/dbus-memory.c: don't use DBusList for the list of stuff
      	to shut down, since it could cause weirdness with the DBusList
      	lock
      
      	* dbus/dbus-list.c (_dbus_list_test): add tests for the
      	link-oriented stack routines
      	(alloc_link): free the mempool if the first alloc from it fails
      
      	* dbus/dbus-mempool.c (struct DBusMemBlock): fix alignment issue
      
      	* dbus/dbus-string.c (UNICODE_VALID): sync new version of this
      	from GLib
      	(_dbus_string_skip_white): new
      
      	* doc/config-file.txt (Elements): add <includedir>
      bc86794f
  29. 26 Mar, 2003 2 commits
    • Havoc Pennington's avatar
      2003-03-26 Havoc Pennington <hp@pobox.com> · 269d74f2
      Havoc Pennington authored
      	* bus/test-main.c, dbus/dbus-test.c (main): check memleaks
      	after every test so it's quick and easy to see which leaked, and
      	so we test multiple dbus_shutdown() calls
      
      	* configure.in: change configure.in XML stuff to also support
      	expat
      
      	* config-loader-libxml.c: some hacking
      
      	* config-loader-expat.c: some hacking
      
      	* config-parser.c: some hacking, plus tests
      269d74f2
    • Havoc Pennington's avatar
      2003-03-25 Havoc Pennington <hp@redhat.com> · 90ed1d84
      Havoc Pennington authored
              * throughout - add more _DBUS_ASSERT_ERROR_IS_CLEAR
      
      	* configure.in: add --with-xml option to specify XML library,
      	right now only libxml is supported.
      
      	* bus/config-loader-libxml.c, config-parser.c: sync some minor
      	nonworking code between home and work, still just stubs
      90ed1d84
  30. 24 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-23 Havoc Pennington <hp@pobox.com> · c3af5ccd
      Havoc Pennington authored
      	* dbus/dbus-threads.c (dbus_mutex_new, dbus_condvar_new): with
      	DBUS_BUILD_TESTS, actually alloc/free a block of memory for
      	the mutex, so we can check for proper memory management
      	and OOM handling.
      
      	* dbus/dbus-dataslot.c: remove the mutex from
      	DBusDataSlotAllocator and lock it manually when using it,
      	to simplify fitting it into the global slots framework.
      
      	* dbus/dbus-threads.c (init_static_locks): rework how we're
      	handling global locks so they are easily shut down.
      
      	* bus/policy.c (bus_policy_append_rule): fix
      
      	* bus/test-main.c (main): check for memleaks
      
      	* dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): make
      	test suite check for memleaks
      
      	* dbus/dbus-memory.c: add support in test mode for tracking
      	number of outstanding blocks
      c3af5ccd
  31. 17 Mar, 2003 1 commit
  32. 15 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-14 Havoc Pennington <hp@redhat.com> · 4c95a978
      Havoc Pennington authored
      	* dbus/dbus-memory.c: add a "detect buffer overwrites on free"
      	cheesy hack
      
      	* dbus/dbus-transport-debug.c: rework this a good bit to be
      	less complicated. hopefully still works.
      
      	* dbus/dbus-server-debug.c (handle_new_client): remove timeout
      	manually
      
      	* glib/dbus-gmain.c (timeout_handler): don't remove timeout
      	after running it
      
      	* dbus/dbus-message.c (dbus_message_copy): rename from
      	dbus_message_new_from_message, fix it up to copy
      	all the message fields, add test case
      
      	* bus/dispatch.c (bus_dispatch_test): add some more test code,
      	not quite passing yet
      4c95a978
  33. 14 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-13 Havoc Pennington <hp@redhat.com> · 3bea9353
      Havoc Pennington authored
      	* dbus/dbus-timeout.c (_dbus_timeout_list_set_functions): handle
      	out of memory
      
      	* dbus/dbus-watch.c (_dbus_watch_list_set_functions): handle out
      	of memory
      
      	* dbus/dbus-connection.h: Make AddWatchFunction and
      	AddTimeoutFunction return a bool so they can fail on out-of-memory
      
      	* bus/bus.c (bus_context_new): set up timeout handlers
      
      	* bus/connection.c (bus_connections_setup_connection): set up
      	timeout handlers
      
      	* glib/dbus-gmain.c: adapt to the fact that set_functions stuff
      	can fail
      
      	* bus/bus.c (bus_context_new): adapt to changes
      
      	* bus/connection.c: adapt to changes
      
      	* test/watch.c: adapt to DBusWatch changes
      
      	* bus/dispatch.c (bus_dispatch_test): started adding this but
      	didn't finish
      3bea9353
  34. 13 Mar, 2003 1 commit
  35. 15 Feb, 2003 1 commit
    • Alexander Larsson's avatar
      2003-02-15 Alexander Larsson <alexl@redhat.com> · fe401894
      Alexander Larsson authored
      	* dbus/dbus-threads.c:
      	* dbus/dbus-threads.h:
      	Add condvars. Remove static mutext from API.
      	Implement static mutexes by initializing them from threads_init.
      
      	* glib/dbus-gthread.c:
      	* qt/dbus-qthread.cpp:
      	Update with the thread api changes.
      
      
      	* dbus/dbus-list.c:
      	* dbus/dbus-list.h:
      	Turn StaticMutex into normal mutex + init function.
      	Export new functions _dbus_list_alloc_link, _dbus_list_free_link,
      	_dbus_list_append_link, _dbus_list_prepend_link
      
      
      	* dbus/dbus-sysdeps.c:
      	* dbus/dbus-sysdeps.h:
      	New type dbus_atomic_t, and new functions _dbus_atomic_inc,
      	_dbus_atomic_dec. Only slow fallback implementation at the moment.
      
      	* dbus/dbus-protocol.h:
      	Add DBUS_MESSAGE_LOCAL_DISCONNECT define
      
      	* dbus/dbus-message.c:
      	Make ref/unref atomic.
      	Fix some docs.
      
      	* dbus/dbus-connection-internal.h:
      	* dbus/dbus-connection.c:
      	* dbus/dbus-connection.h:
      	Make threadsafe.
      	Change _peek to _borrow,_return & _steal_borrowed.
      	Change disconnect callback to event.
      	Make dbus_connection_dispatch_messages reentrant.
      
      	* dbus/dbus-transport.c:
      	Don't ref the connection on calls to the transport
      	implementation.
      
      	* dbus/dbus-message-handler.c:
      	Make threadsafe.
      
      	* glib/dbus-gmain.c:
      	Don't use peek_message anymore
      
      	* test/Makefile.am:
      	* test/debug-thread.c:
      	* test/debug-thread.h:
      	Simple thread implementation that asserts() on deadlocks in
      	single-threaded code.
      
      	* test/bus-test.c:
      	(main) Call debug_threads_init.
      
      	* test/watch.c:
      	Use disconnect message instead of disconnect callback.
      
      	* bus/connection.c:
      	* bus/connection.h:
      	Don't call dbus_connection_set_disconnect_function. Instead export
      	bus_connection_disconnect.
      
      	* bus/dispatch.c:
      	Call bus_connection_disconnect when we get a disconnected message.
      fe401894
  36. 21 Nov, 2002 3 commits
    • Havoc Pennington's avatar
      2002-11-21 Havoc Pennington <hp@redhat.com> · 5a6adeee
      Havoc Pennington authored
      	* dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
      	so we can allow ourselves to include files directly,
      	instead of having to use dbus.h
      
      	* dbus/dbus.h: fill in
      
      	* dbus/dbus-message.h: sketch out a sample header file.
      	Include griping if you include it directly instead of
      	via dbus.h
      
      	* dbus/dbus-macros.h: new file with macros for extern "C",
      	TRUE/FALSE, NULL, etc.
      
      	* doc/file-boilerplate.c: put include guards in here
      5a6adeee
    • Havoc Pennington's avatar
      2002-11-21 Havoc Pennington <hp@redhat.com> · 89161753
      Havoc Pennington authored
      	* doc/file-boilerplate.c: include both AFL and GPL boilerplate.
      
      	* COPYING: include the GPL as well, and license code
      	under both AFL and GPL.
      89161753
    • Havoc Pennington's avatar
      add file-boilerplate.c · f6343e58
      Havoc Pennington authored
      f6343e58