1. 24 Feb, 2015 1 commit
  2. 04 Feb, 2015 1 commit
    • Simon McVittie's avatar
      Add a regression test for being a new-style monitor · a650bd05
      Simon McVittie authored
      This includes most of the situations I could think of:
      
      * method call on dbus-daemon and response
      * NameOwnerChanged
      * NameAcquired, NameLost (although I'm not 100% sure these should
        get captured, since they're redundant with NameOwnerChanged)
      * unicast message is allowed through
      * unicast message is rejected by no-sending or no-receiving policy
      * broadcast is allowed through
      * broadcast is rejected by no-sending policy (the error reply
        is also captured)
      * broadcast is rejected by no-receiving policy (there is no error
        reply)
      * message causing service activation, and the message telling systemd
        to do the actual activation
      * systemd reporting that activation failed
      
      It does not cover:
      
      * sending a message to dbus-daemon, then provoking a reply, then
        dbus-daemon does not allow itself to send the reply due to its
        own security policy
      
      This is such an obscure corner case that I'm not even convinced it's
      testable without dropping down into lower-level socket manipulation:
      dbus-daemon's replies are always assumed to be requested replies,
      and replies contain so little other metadata that I think we can
      only forbid them by forbidding all method replies. If we do that,
      the reply to Hello() won't arrive and the client-side connection will
      not become active.
      
      Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46787Reviewed-by: Philip Withnall's avatarPhilip Withnall <philip.withnall@collabora.co.uk>
      a650bd05
  3. 03 Feb, 2015 3 commits
  4. 29 Oct, 2014 1 commit
  5. 11 Jun, 2014 1 commit
  6. 10 Oct, 2013 1 commit
  7. 23 Aug, 2013 1 commit
  8. 22 Aug, 2013 1 commit
  9. 22 Mar, 2012 2 commits
  10. 23 Jan, 2012 1 commit
  11. 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
  12. 28 Sep, 2011 3 commits
  13. 28 Jul, 2011 1 commit
  14. 17 Dec, 2010 1 commit
  15. 15 Dec, 2010 1 commit
    • Will Thompson's avatar
      policy tests: Use 'nogroup' rather than 'wheel' or 'root' · 844134fa
      Will Thompson authored
      The excellently-titled commit 197bef82 “Fix test failures on OSX.” broke
      the tests on Linux, since there's no wheel group on this side of the
      tracks. So here's a group everyone should enjoy.
      
      (If anyone comes along and tells me that DragonflyBSD doesn't have
      'nogroup' …)
      844134fa
  16. 04 Dec, 2010 1 commit
  17. 11 Apr, 2010 1 commit
    • Ralf Habacker's avatar
      Cmake support for cross plattform usable test files. · 0ed7d779
      Ralf Habacker authored
      Recent test configuration files contains 'unix:...'
      bus adresses which do not work on windows.
      For cross plattform usable test files the whole
      listen tag entry has to be set by the build system,
      which is available with a new build system variable
      named TEST_LISTEN.
      To have the client client side definition in sync,
      TEST_CONNECTION has been moved from c file into cmake
      build system.
      0ed7d779
  18. 28 Jan, 2010 1 commit
    • Colin Walters's avatar
      Ignore exit code zero from activated services · b7e77c6b
      Colin Walters authored
      A variety of system components have migrated from legacy init into DBus
      service activation.  Many of these system components "daemonize", which
      involves forking.  The DBus activation system treated an exit as an
      activation failure, assuming that the child process which grabbed the
      DBus name didn't run first.
      
      While we're in here, also differentiate in this code path between the
      servicehelper (system) versus direct activation (session) paths.  In
      the session activation path our error message mentioned a helper
      process which was confusing, since none was involved.
      
      Based on a patch and debugging research from Ray Strode <rstrode@redhat.com>
      b7e77c6b
  19. 15 Dec, 2009 1 commit
    • Colin Walters's avatar
      Ignore exit code zero from activated services · 949a64b1
      Colin Walters authored
      A variety of system components have migrated from legacy init into DBus
      service activation.  Many of these system components "daemonize", which
      involves forking.  The DBus activation system treated an exit as an
      activation failure, assuming that the child process which grabbed the
      DBus name didn't run first.
      
      While we're in here, also differentiate in this code path between the
      servicehelper (system) versus direct activation (session) paths.  In
      the session activation path our error message mentioned a helper
      process which was confusing, since none was involved.
      
      Based on a patch and debugging research from Ray Strode <rstrode@redhat.com>
      949a64b1
  20. 01 Dec, 2009 1 commit
  21. 30 May, 2008 1 commit
    • Colin Walters's avatar
      Add "PrivServer" test which exercises DBusServer and dbus_shutdown · 5e359834
      Colin Walters authored
      	* 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.
      5e359834
  22. 10 Oct, 2007 1 commit
  23. 13 Sep, 2007 1 commit
    • Allison Lortie's avatar
      migrate from cvs to git (cvs2svn -> git-svnimport). · d34905d8
      Allison Lortie authored
      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
      d34905d8
  24. 24 Jul, 2007 1 commit
    • Richard Hughes's avatar
      2007-07-24 Richard Hughes <richard@hughsie.com> · 5cfa0506
      Richard Hughes authored
      * configure.in:
      * test/Makefile.am:
      * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS
      uiteNoExec.service.in:
      * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS
      uiteNoService.service.in:
      * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS
      uiteNoUser.service.in:
      * test/data/valid-config-files-system/debug-allow-all-fail.conf.in:
      * test/data/valid-config-files-system/debug-allow-all-pass.conf.in:
      * test/data/valid-config-files/debug-allow-all-sha1.conf.in:
      * test/data/valid-config-files/debug-allow-all.conf.in:
      * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui
      teEchoService.service.in:
      * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui
      teSegfaultService.service.in:
      * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui
      teShellEchoServiceFail.service.in:
      * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui
      teShellEchoServiceSuccess.service.in:
      * test/data/valid-service-files/debug-echo.service.in:
      * test/data/valid-service-files/debug-segfault.service.in:
      * test/data/valid-service-files/debug-shell-echo-fail.service.in:
      * test/data/valid-service-files/debug-shell-echo-success.service.in:
      * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoS
      ervice.service.in:
      * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfa
      ultService.service.in:
      * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShell
      EchoServiceFail.service.in:
      * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShell
      EchoServiceSuccess.service.in:
      Add the data files needed by the system activation unit checks.
      5cfa0506
  25. 23 Jun, 2007 1 commit
  26. 10 Jun, 2007 1 commit
    • Havoc Pennington's avatar
      2007-06-09 Havoc Pennington <hp@redhat.com> · a789b7b3
      Havoc Pennington authored
      	* dbus/dbus-string.c (_dbus_string_pop_line): fix this not to
      	think an empty line is the end of the file.
      	Also, fix some whitespace.
      
      	* dbus/dbus-string-util.c: add more tests for
      	_dbus_string_pop_line() revealing that it thinks an empty line is
      	the end of the file, which broke dbus-auth-script.c so
      	it didn't really run the scripts
      
      	* dbus/dbus-auth.c: add ANONYMOUS mechanism
      
      	* dbus/dbus-auth-script.c (_dbus_auth_script_run): fix to detect
      	an empty/no-op auth script; add commands to check that we have or
      	don't have the expected credentials
      a789b7b3
  27. 01 Nov, 2006 1 commit
    • John Palmieri's avatar
      * configure.in: expose DBUS_DATADIR · 5640f7a5
      John Palmieri authored
      * bus/config-parser.c: add the standard_session_servicedirs element
        to the parser
        (bus_config_parser_content): process the standard_session_servicedirs
        element by getting the standard directories from sysdeps and merging
        them into the service directory list
        (test_default_session_servicedirs): make sure we get what we expect
      
      * bus/session.conf.in: replace the servicedir tag with the
        standard_session_servicedirs tag
      
      * dbus/dbus-list.h: remove the typedef of DBusList and place it in
        dbus-sysdeps.h to avoid circular header dependencies
      
      * dbus/dbus-sysdeps.h: add the typedef of DBusList
      
      * dbus/dbus-sysdeps-unix.c (split_paths_and_append): utility function
        which takes a string of directories delimited by colons, parses them
        out, appends a suffix and puts them in a list ignoring empty elements
        (_dbus_get_standard_session_servicedirs): returns the standard
        directories for a session bus to look for service activation files
        on Unix which includes the XDG_DATA_HOME, XDG_DATA_DIRS and
        DBUS_DATADIR directories
      
      * test/data/valid-config-files/many-rules.conf: add the
        standard_session_servicedirs tag to the valid config file tests
      5640f7a5
  28. 14 Jul, 2006 1 commit
  29. 24 Oct, 2005 1 commit
    • Robert McQueen's avatar
      2005-10-24 Robert McQueen <robot101@debian.org> · ef47e01f
      Robert McQueen authored
          * python/dbus_bindings.pyx (String, MessageIter): make D-Bus strings
          derive from unicode instead of str, and encode/decode UTF-8 when
          marshalling/unmarshalling bus messages
      
          * python/introspect_parser.py: encode introspection data as UTF-8
          before passing the buffer into libxml2
      
          * test/python/test-client.py: add unicode test strings
      
          * test/data/valid-service-files/.cvsignore, test/python/.cvsignore:
          ignore generated python test files
      ef47e01f
  30. 11 Sep, 2005 1 commit
    • Mark McLoughlin's avatar
      2005-09-11 Mark McLoughlin <mark@skynet.ie> · 5e8110d7
      Mark McLoughlin authored
      	* test/data/auth/fallback.auth-script: we don't
      	retry the EXTERNAL method when we know its going
      	to fail anymore.
      
      2005-09-11  Mark McLoughlin  <mark@skynet.ie>
      
      	* dbus/dbus-connection-internal.h: rename
      	(add|remove|toggle)_(watch|timeout) to unlocked()
      
      	* dbus/dbus-connection.c: ditto.
      
      	* dbus/dbus-timeout.c, dbus/dbus-transport-unix.c:
      	Update some callers for the renaming.
      
      2005-09-10  Mark McLoughlin  <mark@skynet.ie>
      
      	* dbus/dbus-auth.c: (record_mechanisms): don't
      	retry the first auth mechanism because we know
      	we're just going to get rejected again.
      
      	* dbus/dbus-keyring.c: (_dbus_keyring_reload):
      	Fix thinko ... and what a nasty little bugger to
      	track down you were ...
      
      	* dbus/dbus-connection.c:
      	(_dbus_connection_add_watch),
      	(_dbus_connection_remove_watch): add note about
      	these needing the connection to be locked.
      	(_dbus_connection_get_dispatch_status_unlocked):
      	set status to DATA_REMAINS when we queue the
      	disconnected message.
      
      	* bus/dispatch.c:
      	(bus_dispatch): fix warning.
      	(check_existent_service_no_auto_start):
      	Expect ChildSignaled error too.
      	(check_existent_hello_from_self): fix another
      	couple of warnings.
      5e8110d7
  31. 25 Aug, 2005 1 commit
  32. 14 Jul, 2005 1 commit
    • John Palmieri's avatar
      Checking in Rodrigo's patch along with my fixes to the patch · 075945f6
      John Palmieri authored
      2005-07-14  John (J5) Palmieri  <johnp@redhat.com>
      
      	* bus/activation.c: clean up all tabs to be 8 spaces
      	(bus_activation_activate_service): make sure we clean up
      	if activation fails
      
      	* bus/dispatch.c: clean up all tabs to be 8 spaces
      	(check_shell_fail_service_auto_start): New function
      	tests to make sure we get fail properly when trying to auto start a service
      	with a faulty command line
      	(check_shell_service_success_auto_start): New function tests to make sure
      	auto started services get the arguments on the command line
      
      	* test/test-shell-service.c: Added service for testing auto-starting with
      	command line arguments
      
      	* test/data/valid-service-files/debug-shell-echo-fail.service.in,
      	test/data/valid-service-files/debug-shell-echo-success.service.in:
      	Added service files for testing auto-starting with command line arguments
      
      	* */.cvsignore: added a bunch of generated files to various .cvsignore files
      
      2005-07-14  Rodrigo Moya  <rodrigo@novell.com>
      
      	* dbus/dbus-shell.[ch]: copy/pasted code from GLib.
      
      	* dbus/Makefile.am: added new files to build.
      
      	* bus/activation.c (bus_activation_activate_service): support
      	activation commands with parameters.
      
      	* test/shell-test.c: added test program for the shell parsing
      	code.
      075945f6
  33. 05 May, 2005 1 commit
    • Havoc Pennington's avatar
      2005-05-05 Havoc Pennington <hp@redhat.com> · 4db285c8
      Havoc Pennington authored
      	* configure.in (LT_*): add notes on how the libtool versioning
      	works to save thinking. Increment soname to indicate protocol
      	breakage (though really the library interface hasn't changed I
      	guess)
      
      	* dbus/dbus-transport.c (_dbus_transport_get_is_authenticated):
      	verify the GUID received from server matches what we were
      	expecting, if we had an expectation
      
      	* dbus/dbus-auth.c (send_ok): send GUID along with the OK command
      	(_dbus_auth_get_guid_from_server): new function
      	(send_begin): parse the OK args
      
      	* doc/dbus-specification.xml: add GUID to the auth protocol
      4db285c8
  34. 12 Mar, 2005 1 commit
    • Colin Walters's avatar
      2005-03-11 Colin Walters <walters@verbum.org> · 3dea5c18
      Colin Walters authored
      	* glib/Makefile.am: Generate dbus-glib-bindings.h and
      	install it.
      
      	* bus/print-introspect.c: New file; prints introspection
      	data for a given name and object path.
      
      	* bus/run-with-tmp-session-bus.sh: New file, refactored
      	from test/glib/run-test.sh.  Creates a temporary session
      	bus and runs another program.
      
      	* test/glib/run-test.sh: Refactor to invoke
      	run-with-tmp-session-bus.sh.
      
      	* bus/driver.c (bus_driver_handle_introspect): Fix to print new
      	introspection format.  Also change to use DBUS_TYPE_x_AS_STRING
      	macros instead of hardcoding.
      
      	* glib/.cvsignore, bus/.cvsignore, test/glib/.cvsignore: Update.
      3dea5c18
  35. 17 Feb, 2005 1 commit