Files
finit/test/skel/usr/share/dbus-1/system.conf
T
Joachim Wiberg 847f4db974 dbus: install the bus policy in $datadir/dbus-1/system.d
make distcheck fails in install:

    /usr/bin/install: cannot create regular file '/etc/dbus-1/system.d/org.finit.conf': Permission denied

The policy was installed to $sysconfdir/dbus-1/system.d.  distcheck only
overrides the prefix, so the file escaped its sandbox and aimed for the
real /etc.

Install it where dbus looks for package owned policy, leaving
/etc/dbus-1/system.d to the admin.  The test bus config reads it
relative to itself.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2026-08-29 13:54:14 +02:00

40 lines
1.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<!--
The system bus configuration for the test namespace, deliberately
permissive. It lives where a stock system bus daemon looks for its
configuration, so the dbus plugin's own invocation finds it.
What is under test is Finit attaching to a broker and serving calls
routed through it, not dbus policy, so nothing here should be able
to refuse a message and make a Finit bug look like a policy denial.
Everything runs as root inside the namespace, hence no <user>.
-->
<busconfig>
<type>system</type>
<!-- Pick up the policy Finit itself ships, so a malformed
org.finit.conf fails the test rather than a target. The first
is relative to this file, i.e. where the install lands, the
second is the admin override directory. -->
<includedir>system.d</includedir>
<includedir>/etc/dbus-1/system.d</includedir>
<listen>unix:path=/var/run/dbus/system_bus_socket</listen>
<auth>EXTERNAL</auth>
<policy context="default">
<allow user="*"/>
<allow own="*"/>
<allow send_type="method_call"/>
<allow send_type="signal"/>
<allow send_type="method_return"/>
<allow send_type="error"/>
<allow receive_type="method_call"/>
<allow receive_type="signal"/>
<allow receive_type="method_return"/>
<allow receive_type="error"/>
</policy>
</busconfig>