1 <!-- This configuration file controls the per-user-login-session message bus.
2 Add a session-local.conf and edit that rather than changing this
5 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
6 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
8 <!-- Our well-known bus type, don't change this -->
11 <!-- If we fork, keep the user's original umask to avoid affecting
12 the behavior of child processes. -->
15 <listen>unix:tmpdir=/tmp</listen>
17 <standard_session_servicedirs />
19 <!-- intended to match system bus -->
20 <policy context="default">
21 <!-- All users can connect to system bus -->
24 <!-- Holes must be punched in service configuration files for
25 name ownership and sending method calls -->
27 <deny send_type="method_call"/>
29 <!-- Signals and reply messages (method returns, errors) are allowed
31 <allow send_type="signal"/>
32 <allow send_requested_reply="true" send_type="method_return"/>
33 <allow send_requested_reply="true" send_type="error"/>
35 <!-- All messages may be received by default -->
36 <allow receive_type="method_call"/>
37 <allow receive_type="method_return"/>
38 <allow receive_type="error"/>
39 <allow receive_type="signal"/>
41 <!-- Allow anyone to talk to the message bus -->
42 <allow send_destination="org.freedesktop.DBus"/>
43 <!-- But disallow some specific bus services -->
44 <deny send_destination="org.freedesktop.DBus"
45 send_interface="org.freedesktop.DBus"
46 send_member="UpdateActivationEnvironment"/>
48 <!-- Specific to the test suite -->
49 <allow own="org.freedesktop.DBus.TestSuiteEchoService"/>
50 <allow send_destination="org.freedesktop.DBus.TestSuiteEchoService"
51 send_interface="org.freedesktop.DBus.Introspectable"/>
52 <allow send_destination="org.freedesktop.DBus.TestSuiteEchoService"
53 send_interface="org.freedesktop.TestSuite"
54 send_member="EmitFoo"/>
57 <policy context="default">
58 <allow own="org.freedesktop.DBus.TestSuiteEchoService"/>
59 <allow send_destination="org.freedesktop.DBus.TestSuiteEchoService"
60 send_interface="org.freedesktop.DBus.Introspectable"/>
61 <allow send_destination="org.freedesktop.DBus.TestSuiteEchoService"
62 send_interface="org.freedesktop.TestSuite"
63 send_member="EmitFoo"/>
66 <!-- For the session bus, override the default relatively-low limits
67 with essentially infinite limits, since the bus is just running
68 as the user anyway, using up bus resources is not something we need
69 to worry about. In some cases, we do set the limits lower than
70 "all available memory" if exceeding the limit is almost certainly a bug,
71 having the bus enforce a limit is nicer than a huge memory leak. But the
72 intent is that these limits should never be hit. -->
74 <!-- the memory limits are 1G instead of say 4G because they can't exceed 32-bit signed int max -->
75 <limit name="max_incoming_bytes">1000000000</limit>
76 <limit name="max_outgoing_bytes">1000000000</limit>
77 <limit name="max_message_size">1000000000</limit>
78 <limit name="service_start_timeout">120000</limit>
79 <limit name="auth_timeout">240000</limit>
80 <limit name="max_completed_connections">100000</limit>
81 <limit name="max_incomplete_connections">10000</limit>
82 <limit name="max_connections_per_user">100000</limit>
83 <limit name="max_pending_service_starts">10000</limit>
84 <limit name="max_names_per_connection">50000</limit>
85 <limit name="max_match_rules_per_connection">50000</limit>
86 <limit name="max_replies_per_connection">50000</limit>
87 <limit name="reply_timeout">300000</limit>