dbus/test
Simon McVittie a650bd055f Add a regression test for being a new-style monitor
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=46787
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
2015-02-04 17:15:24 +00:00
..
data Add a regression test for being a new-style monitor 2015-02-04 17:15:24 +00:00
internals Bump required GLib version to 2.36 2015-02-03 16:18:47 +00:00
name-test Use pygi instead of pygobject 2 2015-01-27 14:29:59 +00:00
.gitignore Update .gitignore files 2015-02-03 15:40:01 +00:00
break-loader.c Remove DBUS_COMPILATION from test source code 2013-09-13 13:44:09 +01:00
corrupt.c Bump required GLib version to 2.36 2015-02-03 16:18:47 +00:00
dbus-daemon-eavesdrop.c Add infrastructure to run bits of tests under an alternative uid 2015-02-03 16:19:05 +00:00
dbus-daemon.c Add infrastructure to run bits of tests under an alternative uid 2015-02-03 16:19:05 +00:00
dbus-test-runner Add support for installing most of the modular tests 2011-06-10 18:32:35 +01:00
fdpass.c New test for fd-passing 2014-09-17 17:20:07 +01:00
loopback.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
Makefile.am Add a regression test for being a new-style monitor 2015-02-04 17:15:24 +00:00
manual-authz.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
manual-dir-iter.c Add directory test application 'manual-dir-iter' to cmake and autotools build system. 2014-09-08 14:33:37 +00:00
manual-tcp.c Add manual tcp test case. 2015-01-30 09:33:40 +01:00
marshal.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
monitor.c Add a regression test for being a new-style monitor 2015-02-04 17:15:24 +00:00
relay.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
sd-activation.c Add a regression test for systemd activation 2015-02-03 16:20:01 +00:00
shell-test.c Define DBUS_COMPILATION externally for all tests that use internal stuff 2013-09-03 12:00:44 +01:00
spawn-test.c DBusBabysitter: change executable to log_name 2013-11-01 12:40:41 +00:00
syntax.c Accept non-characters when validating Unicode 2013-04-22 15:36:32 +01:00
test-exit.c Include config.h as the first thing in every .c file 2013-02-22 13:08:27 +00:00
test-names.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
test-segfault.c On Linux, call prctl to disable core dumps 2014-09-15 11:50:48 +01:00
test-service.c Revert all changes since a36d4918a6 2012-01-04 17:44:23 +00:00
test-shell-service.c Revert all changes since a36d4918a6 2012-01-04 17:44:23 +00:00
test-sleep-forever.c fix warning, use Sleep, not _sleep on windows (cherry picked from commit ea36c743ad60a2dd5c6286571d1a475903519809) 2009-11-30 12:00:14 +01:00
test-utils-glib.c Treat root as a valid candidate for TEST_USER_ME 2015-02-03 19:35:39 +00:00
test-utils-glib.h Treat root as a valid candidate for TEST_USER_ME 2015-02-03 19:35:39 +00:00
test-utils.c Factor out some utility functions from test/dbus-daemon* 2015-02-03 16:18:57 +00:00
test-utils.h Factor out some utility functions from test/dbus-daemon* 2015-02-03 16:18:57 +00:00
uid-permissions.c bus driver: factor out bus_driver_check_caller_is_privileged, and allow root 2015-02-03 16:19:11 +00:00
unused-code-gc.py 2005-01-16 Havoc Pennington <hp@redhat.com> 2005-01-17 03:53:40 +00:00