|
@@ -14,18 +14,33 @@
|
|
|
<!-- Our well-known bus type, do not change this -->
|
|
|
<type>system</type>
|
|
|
|
|
|
- <!-- Fork into daemon mode -->
|
|
|
- <fork/>
|
|
|
-
|
|
|
<!-- Run as special user -->
|
|
|
<user>dbus</user>
|
|
|
|
|
|
+ <!-- Fork into daemon mode -->
|
|
|
+ <fork/>
|
|
|
+
|
|
|
<!-- We use system service launching using a helper -->
|
|
|
<standard_system_servicedirs/>
|
|
|
|
|
|
+ <!-- This is a setuid helper that is used to launch system services -->
|
|
|
+ <servicehelper>/usr/libexec/dbus-daemon-launch-helper</servicehelper>
|
|
|
+
|
|
|
+ <!-- Write a pid file -->
|
|
|
+ <pidfile>/run/messagebus.pid</pidfile>
|
|
|
+
|
|
|
<!-- Enable logging to syslog -->
|
|
|
<syslog/>
|
|
|
|
|
|
+ <!-- Only allow socket-credentials-based authentication -->
|
|
|
+ <auth>EXTERNAL</auth>
|
|
|
+
|
|
|
+ <!-- Only listen on a local socket. (abstract=/path/to/socket
|
|
|
+ means use abstract namespace, don't really create filesystem
|
|
|
+ file; only Linux supports this. Use path=/whatever on other
|
|
|
+ systems.) -->
|
|
|
+ <listen>unix:path=/run/dbus/system_bus_socket</listen>
|
|
|
+
|
|
|
<policy context="default">
|
|
|
<!-- All users can connect to system bus -->
|
|
|
<allow user="*"/>
|
|
@@ -54,6 +69,8 @@
|
|
|
send_interface="org.freedesktop.DBus.Introspectable"/>
|
|
|
<allow send_destination="org.freedesktop.DBus"
|
|
|
send_interface="org.freedesktop.DBus.Properties"/>
|
|
|
+ <allow send_destination="org.freedesktop.DBus"
|
|
|
+ send_interface="org.freedesktop.DBus.Containers1"/>
|
|
|
<!-- But disallow some specific bus services -->
|
|
|
<deny send_destination="org.freedesktop.DBus"
|
|
|
send_interface="org.freedesktop.DBus"
|
|
@@ -84,6 +101,8 @@
|
|
|
send_interface="org.freedesktop.DBus.Debug.Stats"/>
|
|
|
</policy>
|
|
|
|
|
|
+ <!-- Include legacy configuration location -->
|
|
|
+ <include ignore_missing="yes">/etc/dbus-1/system.conf</include>
|
|
|
|
|
|
<!-- The defaults for these limits are hard-coded in dbus-daemon.
|
|
|
Some clarifications:
|