dbus/test/data/valid-config-files
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
..
basic.d 2003-04-02 Havoc Pennington <hp@redhat.com> 2003-04-02 21:43:29 +00:00
system.d 2003-09-21 Havoc Pennington <hp@pobox.com> 2003-09-21 19:53:56 +00:00
.gitignore Update .gitignore files 2015-02-03 15:40:01 +00:00
basic.conf 2005-01-18 Havoc Pennington <hp@redhat.com> 2005-01-18 20:42:15 +00:00
check-own-rules.conf test: enforce own_prefix policy rules 2012-03-22 11:51:23 +00:00
debug-allow-all-sha1.conf.in Merge tests' cmake and autotools bus configuration 2011-09-28 19:00:56 +01:00
debug-allow-all.conf.in Merge tests' cmake and autotools bus configuration 2011-09-28 19:00:56 +01:00
entities.conf 2003-04-12 Havoc Pennington <hp@pobox.com> 2003-04-12 18:32:11 +00:00
finite-timeout.conf.in Use a better NoReply message for disconnection with reply pending 2014-10-29 14:10:48 +00:00
forbidding.conf.in Add a regression test for being a new-style monitor 2015-02-04 17:15:24 +00:00
incoming-limit.conf.in Use TEST_LISTEN in incoming-listen.conf.in instead of unix only hardcoded address 2013-10-10 15:38:50 +02:00
many-rules.conf test: parse own_prefix policy rules 2012-03-22 11:50:27 +00:00
multi-user.conf.in Add a test for uid-controlled permissions 2015-02-03 16:19:08 +00:00
systemd-activation.conf.in Add a regression test for systemd activation 2015-02-03 16:20:01 +00:00