- 04 Feb, 2015 1 commit
-
-
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 <philip.withnall@collabora.co.uk>
-
- 03 Feb, 2015 10 commits
-
-
Simon McVittie authored
If spawn_dbus_daemon() can fail for TEST_USER_ME, then we'd have to go through all the tests adding the ability to skip tests after it fails, which is a fairly extensive change. The tests have historically all run as whatever uid is supplied, and if the tests are being run as root for some reason - perhaps in a CI framework for an embedded platform that doesn't have non-root users, or in an environment where you can be root or non-root but not both - there is no particular reason to skip them.
-
Simon McVittie authored
4.5 years after it was implemented, here is the regression test. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=57952 Reviewed-by: Philip Withnall
-
Simon McVittie authored
Unlike the initial mitigation for CVE-2014-8148, we now allow uid 0 to call UpdateActivationEnvironment. There's no point in root doing that, but there's also no reason why it's particularly bad - if an attacker is uid 0 we've already lost - and it simplifies use of this function for future things that do want to be callable by root, like BecomeMonitor for #46787. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88810 Reviewed-by: Philip Withnall
-
Simon McVittie authored
This is technical debt from mitigating CVE-2014-8148, which should really have had a regression test at the time. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88810 Reviewed-by: Philip Withnall
-
Simon McVittie authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88810 Reviewed-by: Philip Withnall
-
Simon McVittie authored
We run each test twice: * once with the system's session.conf, as an integration test (test-cases that need a special configuration are automatically skipped) * once with our special test configuration files, which provide better coverage Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88810 Reviewed-by: Philip Withnall
-
Simon McVittie authored
This means we can generate a version that works when installed, from the same source files. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88810 Reviewed-by: Philip Withnall
-
Simon McVittie authored
In the process, make test_kill_pid() safer: do not try to terminate more than one pid, or the NULL handle. Also stop leaking the address_fd in spawn_dbus_daemon, a pre-existing bug that was spotted by Philip Withnall during review. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88810 Reviewed-by: Philip Withnall
-
Simon McVittie authored
This is for g_close(), which the next commit will use. It also lets us rely on g_type_init() being a no-op (since 2.32 the type system is always initialized by a global constructor). Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88810 Reviewed-by: Philip Withnall
-
Lukasz Skalski authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88943Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
- 30 Jan, 2015 1 commit
-
-
Ralf Habacker authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=87999Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
- 27 Jan, 2015 1 commit
-
-
Simon McVittie authored
pygobject 2 is obsolete and unmaintained, and anyway this is for optional functionality (full regression test coverage) rather than anything that will be needed in production builds. Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85969
-
- 01 Jan, 2015 1 commit
-
-
Simon McVittie authored
Reviewed-by:
Thiago Macieira <thiago@kde.org>
-
- 18 Nov, 2014 1 commit
-
-
Alban Crequy authored
Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85105
-
- 06 Nov, 2014 4 commits
-
-
Simon McVittie authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69702Reviewed-by:
Patrick Welche <prlw1@cam.ac.uk> Reviewed-by:
Alban Crequy <alban.crequy@collabora.co.uk> Tested-by:
Patrick Welche <prlw1@cam.ac.uk>
-
Simon McVittie authored
Otherwise, this would fail on, for instance, QNX. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69702Reviewed-by:
Patrick Welche <prlw1@cam.ac.uk> Reviewed-by:
Alban Crequy <alban.crequy@collabora.co.uk> Tested-by:
Patrick Welche <prlw1@cam.ac.uk>
-
Patrick Welche authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69702Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by:
Alban Crequy <alban.crequy@collabora.co.uk> Tested-by:
Patrick Welche <prlw1@cam.ac.uk>
-
Simon McVittie authored
We know that Linux, FreeBSD and OpenBSD are "first class citizens" for credentials-passing, with NetBSD not far behind: people have turned up on the bug tracking system and told us that tests passed. On other Unixes, we can't really assert that it works, until someone who runs them tells us that it worked for them. Additions to these lists are welcome. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69702Reviewed-by:
Patrick Welche <prlw1@cam.ac.uk> Reviewed-by:
Alban Crequy <alban.crequy@collabora.co.uk> Tested-by:
Patrick Welche <prlw1@cam.ac.uk>
-
- 29 Oct, 2014 2 commits
-
-
Simon McVittie authored
That implementation no longer exists, so neither 0xABCDEF nor 0xABCDEF2 has any special meaning any more. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54972Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by:
Alban Crequy <alban.crequy@collabora.co.uk>
-
Simon McVittie authored
As an implementation detail, dbus-daemon handles this situation by artificially triggering a timeout (even if its configured timeout for method calls is in fact infinite). However, using the same debug message for both is misleading, and can lead people who are debugging a service crash to blame dbus-daemon instead, wasting their time. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=76112
-
- 17 Sep, 2014 1 commit
-
-
Simon McVittie authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83622Reviewed-by:
Alban Crequy <alban.crequy@collabora.co.uk> [add dbus-sysdeps-unix.h as required for close-on-exec in master -smcv]
-
- 15 Sep, 2014 2 commits
-
-
Simon McVittie authored
There is no system bus on Windows, and there won't be until/unless it can be secure. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83583Reviewed-by:
Ralf Habacker <ralf.habacker@freenet.de>
-
Simon McVittie authored
Whenever I forget to turn off corekeeper, the regression tests take ages to record all test-segfault's crashes. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83772Reviewed-by:
Alban Crequy <alban.crequy@collabora.co.uk>
-
- 08 Sep, 2014 1 commit
-
-
Ralf Habacker authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=57272Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
- 11 Jun, 2014 1 commit
-
-
Lukasz Skalski authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=78977Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
- 30 Apr, 2014 1 commit
-
-
LRN authored
On W32 dbus daemon will print output in text mode, with 0x0d0a EOLs instead of just 0x0a. Be able to handle that. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=75863 Reviewed-by: Simon McVittie
-
- 06 Mar, 2014 1 commit
-
-
Lukasz Skalski authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=75833Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
- 17 Jan, 2014 6 commits
-
-
Ralf Habacker authored
Rename bus-test-launch-helper to test-bus-launch_helper to match common test application naming scheme. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
Ralf Habacker authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
Ralf Habacker authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
Ralf Habacker authored
[Same change as for shell-test in the previous commit. -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
Ralf Habacker authored
[Add its source file to SOURCES: this test was previously relying on the Automake feature that the default value of foo_bar_SOURCES is foo-bar.c. -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
Ralf Habacker authored
[reverted the dbus-specification part -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73495Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
- 10 Jan, 2014 1 commit
-
-
Simon McVittie authored
In general, I think developers running the tests would expect them to terminate rather than hanging. Developers who want to debug such an abort by attaching a debugger to a live process can still set DBUS_BLOCK_ON_ABORT in the environment. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252Reviewed-by:
Ralf Habacker <ralf.habacker@freenet.de>
-
- 07 Jan, 2014 1 commit
-
-
Simon McVittie authored
It's easier to automate these tests if they launch their own dbus-daemon, but easier to debug them if they don't: you can launch a dbus-daemon separately, under gdb. However, tests that need a specially-configured dbus-daemon will have to be skipped. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68852Reviewed-by:
Ralf Habacker <ralf.habacker@freenet.de>
-
- 06 Jan, 2014 2 commits
-
-
Ralf Habacker authored
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
Simon McVittie authored
We don't want the regression tests' "session" getting mixed up in system-wide "sessions". This doesn't actually matter yet, but it is likely to matter in future. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61301Reviewed-by:
Chengwei Yang <chengwei.yang@intel.com> [merged with earlier line-wrapping of TESTS_ENVIRONMENT -smcv] Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
- 01 Nov, 2013 1 commit
-
-
Chengwei Yang authored
DBusBabysitter->executable is defined as executable name to use in error messages. However, if servicehelper used, then the executable name is servicehelper. It's not much help because we couldn't figure out which service we're trying to activated if error happens. In the following patch, we'll use service name to be activated as the child log identifier and add a parameter to _dbus_spawn_async_with_babysitter() to pass the log identifier. Since this is not the case in test, so executable changed to log_name. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68559Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
- 10 Oct, 2013 1 commit
-
-
Simon McVittie authored
Reviewed-by: Colin Walters
-