1 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
2 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
4 <!-- Our well-known bus type, do not change this -->
7 <!-- Fork into daemon mode -->
10 <!-- Enable logging to syslog -->
13 <!-- Only allow socket-credentials-based authentication -->
16 <!-- Only listen on a local socket. (abstract=/path/to/socket
17 means use abstract namespace, don't really create filesystem
18 file; only Linux supports this. Use path=/whatever on other
20 <listen>unix:path=/tmp/system_bus_socket</listen>
22 <policy context="default">
23 <!-- All users can connect to system bus -->
26 <!-- Holes must be punched in service configuration files for
27 name ownership and sending method calls -->
29 <deny send_type="method_call"/>
31 <!-- Signals and reply messages (method returns, errors) are allowed
33 <allow send_type="signal"/>
34 <allow send_requested_reply="true" send_type="method_return"/>
35 <allow send_requested_reply="true" send_type="error"/>
37 <!-- All messages may be received by default -->
38 <allow receive_type="method_call"/>
39 <allow receive_type="method_return"/>
40 <allow receive_type="error"/>
41 <allow receive_type="signal"/>
43 <!-- Allow anyone to talk to the message bus -->
44 <allow send_destination="org.freedesktop.DBus"
45 send_interface="org.freedesktop.DBus" />
46 <allow send_destination="org.freedesktop.DBus"
47 send_interface="org.freedesktop.DBus.Introspectable"/>
48 <!-- But disallow some specific bus services -->
49 <deny send_destination="org.freedesktop.DBus"
50 send_interface="org.freedesktop.DBus"
51 send_member="UpdateActivationEnvironment"/>
52 <deny send_destination="org.freedesktop.DBus"
53 send_interface="org.freedesktop.DBus.Debug.Stats"/>
54 <deny send_destination="org.freedesktop.DBus"
55 send_interface="org.freedesktop.systemd1.Activator"/>