~ubuntuone-control-tower/ubuntu/karmic/ubuntuone-client/karmic

« back to all changes in this revision

Viewing changes to contrib/testing/dbus-session.conf

  • Committer: Rodney Dawes
  • Date: 2009-12-11 20:47:15 UTC
  • Revision ID: rodney.dawes@canonical.com-20091211204715-oo107qgodtpa83v4
Switch to using bzr-builddeb merge format for the branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!-- This configuration file controls our test-only session bus -->
2
 
 
3
 
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
4
 
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
5
 
<busconfig>
6
 
  <!-- We only use a session bus -->
7
 
  <type>session</type>
8
 
 
9
 
  <listen>unix:tmpdir=/tmp</listen>
10
 
 
11
 
  <!-- Load our own services.
12
 
       To make other dbus service in this session bus, just add another servicedir entry. -->
13
 
  <servicedir>dbus-session</servicedir>
14
 
  <!-- Load the standard session services -->
15
 
  <!--standard_session_servicedirs /-->
16
 
 
17
 
  <policy context="default">
18
 
    <!-- Allow everything to be sent -->
19
 
    <allow send_destination="*" eavesdrop="true"/>
20
 
    <!-- Allow everything to be received -->
21
 
    <allow eavesdrop="true"/>
22
 
    <!-- Allow anyone to own anything -->
23
 
    <allow own="*"/>
24
 
  </policy>
25
 
 
26
 
  <!-- Config files are placed here that among other things, 
27
 
       further restrict the above policy for specific services. -->
28
 
  <includedir>/etc/dbus-1/session.d</includedir>
29
 
 
30
 
  <!-- raise the service start timeout to 40 seconds as it can timeout
31
 
       on the live cd on slow machines -->
32
 
  <limit name="service_start_timeout">60000</limit>
33
 
 
34
 
  <!-- This is included last so local configuration can override what's 
35
 
       in this standard file -->
36
 
  <include ignore_missing="yes">session-local.conf</include>
37
 
 
38
 
  <include ignore_missing="yes" if_selinux_enabled="yes" selinux_root_relative="yes">contexts/dbus_contexts</include>
39
 
 
40
 
  <!-- For the session bus, override the default relatively-low limits 
41
 
       with essentially infinite limits, since the bus is just running 
42
 
       as the user anyway, using up bus resources is not something we need 
43
 
       to worry about. In some cases, we do set the limits lower than 
44
 
       "all available memory" if exceeding the limit is almost certainly a bug, 
45
 
       having the bus enforce a limit is nicer than a huge memory leak. But the 
46
 
       intent is that these limits should never be hit. -->
47
 
 
48
 
  <!-- the memory limits are 1G instead of say 4G because they can't exceed 32-bit signed int max -->
49
 
  <limit name="max_incoming_bytes">1000000000</limit>
50
 
  <limit name="max_outgoing_bytes">1000000000</limit>
51
 
  <limit name="max_message_size">1000000000</limit>
52
 
  <limit name="service_start_timeout">120000</limit>  
53
 
  <limit name="auth_timeout">240000</limit>
54
 
  <limit name="max_completed_connections">100000</limit>  
55
 
  <limit name="max_incomplete_connections">10000</limit>
56
 
  <limit name="max_connections_per_user">100000</limit>
57
 
  <limit name="max_pending_service_starts">10000</limit>
58
 
  <limit name="max_names_per_connection">50000</limit>
59
 
  <limit name="max_match_rules_per_connection">50000</limit>
60
 
  <limit name="max_replies_per_connection">50000</limit>
61
 
  <limit name="reply_timeout">300000</limit>
62
 
 
63
 
</busconfig>