summaryrefslogtreecommitdiff
path: root/test/test-utils-glib.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2015-01-26 19:10:11 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-03 16:19:08 +0000
commit98ae1149adf23acd0aae9611f93ac2250ac37bd7 (patch)
treed0c858300e29194cef3734187dea5e38db558864 /test/test-utils-glib.h
parent6a49ced2dd3a1e3b161c677deb72d98674a9069d (diff)
downloaddbus-98ae1149adf23acd0aae9611f93ac2250ac37bd7.tar.gz
Add a test for uid-controlled permissions
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
Diffstat (limited to 'test/test-utils-glib.h')
-rw-r--r--test/test-utils-glib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-utils-glib.h b/test/test-utils-glib.h
index c672fe50..7b6eb743 100644
--- a/test/test-utils-glib.h
+++ b/test/test-utils-glib.h
@@ -74,6 +74,9 @@ gchar *test_get_dbus_daemon (const gchar *config_file,
DBusConnection *test_connect_to_bus (TestMainContext *ctx,
const gchar *address);
+DBusConnection *test_connect_to_bus_as_user (TestMainContext *ctx,
+ const char *address,
+ TestUser user);
void test_kill_pid (GPid pid);