Skip to content
Snippets Groups Projects
Commit aaec38ff authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Disable D-Bus activation


If we allow D-Bus activation to occur on a private instance of the
session bus, checking xdg-desktop-portal can result in it starting all
sorts of random desktop services (AT-SPI, gvfsd, gnome-keyring...)
which really shouldn't be sharing a home directory with their "real"
instances.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 113bfa86
No related branches found
No related tags found
1 merge request!381tests: Disable D-Bus activation
Pipeline #18585 passed
......@@ -27,6 +27,8 @@ test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
test_env.set('SRT_HELPERS_PATH', join_paths(meson.current_build_dir(), '..', 'helpers'))
test_env.prepend('PATH', join_paths(meson.current_build_dir(), '..', 'bin'))
no_activation_session_conf = files('session.conf')
tests = [
{'name': 'architecture'},
{'name': 'container'},
......
......@@ -116,7 +116,11 @@ foreach test_name : tests
if dbus_run_session.found()
test(
test_name, dbus_run_session,
args : ['--', 'prove'] + test_args,
args : [
'--config-file', no_activation_session_conf,
'--',
'prove',
] + test_args,
env : test_env,
suite : ['pressure-vessel'],
timeout : timeout,
......
<!--
Copyright 2021 Collabora Ltd.
SPDX-License-Identifier: MIT
-->
<busconfig>
<type>session</type>
<listen>unix:tmpdir=/tmp</listen>
<auth>EXTERNAL</auth>
<!-- Deliberately no standard_session_servicedirs here. We don't want
to allow service-activation -->
<policy context="default">
<allow send_destination="*" eavesdrop="true"/>
<allow eavesdrop="true"/>
<allow own="*"/>
</policy>
</busconfig>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment