os/ossrv/ofdbus/dbus/data/system.conf
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
<!-- This configuration file controls the systemwide message bus.
sl@0
     2
     Add a system-local.conf and edit that rather than changing this 
sl@0
     3
     file directly. -->
sl@0
     4
sl@0
     5
<!-- Note that there are any number of ways you can hose yourself
sl@0
     6
     security-wise by screwing up this file; in particular, you
sl@0
     7
     probably don't want to listen on any more addresses, add any more
sl@0
     8
     auth mechanisms, run as a different user, etc. -->
sl@0
     9
sl@0
    10
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
sl@0
    11
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
sl@0
    12
<busconfig>
sl@0
    13
sl@0
    14
  <!-- Our well-known bus type, do not change this -->
sl@0
    15
  <type>system</type>
sl@0
    16
sl@0
    17
  <!-- Run as special user -->
sl@0
    18
  <!-- commented in SYMBIAN -->
sl@0
    19
  <!-- user>messagebus</user -->
sl@0
    20
sl@0
    21
  <!-- Fork into daemon mode -->
sl@0
    22
  <!-- Linux -->
sl@0
    23
  <!-- fork/ -->
sl@0
    24
  <!-- SYMBIAN no fork -->
sl@0
    25
sl@0
    26
  <!-- Write a pid file -->
sl@0
    27
  <!-- Linux -->
sl@0
    28
  <!-- pidfile>/usr/local/var/run/dbus/pid</pidfile -->
sl@0
    29
  <!-- SYMBIAN hope that pidfile is not needed, but uncomment below if we need it -->
sl@0
    30
  <!-- pidfile>/epoc32/data/dbus/pid</pidfile -->
sl@0
    31
sl@0
    32
  <!-- Only allow socket-credentials-based authentication -->
sl@0
    33
  <auth>SYMBIAN_DBUS_PLATFORM_SECURITY</auth>
sl@0
    34
sl@0
    35
  <!-- Only listen on a local socket. (abstract=/path/to/socket 
sl@0
    36
       means use abstract namespace, don't really create filesystem 
sl@0
    37
       file; only Linux supports this. Use path=/whatever on other 
sl@0
    38
       systems.) -->
sl@0
    39
  <!-- Linux -->
sl@0
    40
  <!-- listen>unix:path=/usr/local/var/run/dbus/system_bus_socket</listen -->
sl@0
    41
  <!-- SYMBIAN -->
sl@0
    42
  <listen>tcp:host=localhost,port=12434</listen>
sl@0
    43
  
sl@0
    44
     <!--  *********************  -->
sl@0
    45
		 <!-- limits as set in the config-parser.c -->
sl@0
    46
     <!--  parser->limits.max_incoming_bytes = 1024 * 1024 * 63;= 66060288 -->
sl@0
    47
     <!--  parser->limits.max_outgoing_bytes = 1024 * 1024 * 63;= 66060288-->
sl@0
    48
     <!--  parser->limits.max_message_size = 1024 * 1024 * 32;= 33554432-->
sl@0
    49
     <!--  parser->limits.activation_timeout = 250000;-->
sl@0
    50
     <!--  parser->limits.auth_timeout = 300000;-->
sl@0
    51
     <!--  parser->limits.max_incomplete_connections = 32;-->
sl@0
    52
     <!--  parser->limits.max_connections_per_user = 128;-->
sl@0
    53
     <!--  parser->limits.max_completed_connections = 1024;-->
sl@0
    54
     <!--  parser->limits.max_pending_activations = 256;-->
sl@0
    55
     <!--  parser->limits.max_services_per_connection = 256;-->
sl@0
    56
     <!--  parser->limits.max_match_rules_per_connection = 512;-->
sl@0
    57
     <!--  parser->limits.reply_timeout = 5 * 60 * 1000; = 300000-->
sl@0
    58
     <!--  parser->limits.max_replies_per_connection = 32;-->
sl@0
    59
     <!--  *********************  -->
sl@0
    60
     
sl@0
    61
        <limit name="max_incoming_bytes">66060288</limit>      
sl@0
    62
      <limit name="max_outgoing_bytes">66060288</limit>
sl@0
    63
      <limit name="max_message_size">33554432</limit>
sl@0
    64
      <limit name="service_start_timeout">250000</limit>
sl@0
    65
      <limit name="auth_timeout">300000</limit>  
sl@0
    66
      <limit name="max_completed_connections">1024</limit>
sl@0
    67
      <limit name="max_incomplete_connections">32</limit>
sl@0
    68
      <limit name="max_connections_per_user">128</limit>
sl@0
    69
      <limit name="max_pending_service_starts">256</limit>
sl@0
    70
      <limit name="max_names_per_connection">256</limit>
sl@0
    71
      <limit name="max_match_rules_per_connection">512</limit>
sl@0
    72
      <limit name="max_replies_per_connection">32</limit>
sl@0
    73
      <limit name="reply_timeout">300000</limit>
sl@0
    74
sl@0
    75
sl@0
    76
	 <standard_session_servicedirs />
sl@0
    77
  <policy context="default">
sl@0
    78
    <!-- Deny everything then punch holes -->
sl@0
    79
    <allow send_interface="*"/>
sl@0
    80
    <allow receive_interface="*"/>
sl@0
    81
    <allow own="*"/>
sl@0
    82
    <!-- But allow all users to connect -->
sl@0
    83
    <allow user="*"/>
sl@0
    84
    <!-- Allow anyone to talk to the message bus -->
sl@0
    85
    <!-- FIXME I think currently these allow rules are always implicit 
sl@0
    86
         even if they aren't in here -->
sl@0
    87
    <allow send_destination="org.freedesktop.DBus"/>
sl@0
    88
    <allow receive_sender="org.freedesktop.DBus"/>
sl@0
    89
    <!-- valid replies are always allowed -->
sl@0
    90
    <allow send_requested_reply="true"/>
sl@0
    91
    <allow receive_requested_reply="true"/>
sl@0
    92
  </policy>
sl@0
    93
sl@0
    94
  <!-- Config files are placed here that among other things, punch 
sl@0
    95
       holes in the above policy for specific services. -->
sl@0
    96
  <!-- In symbian nuw includedir is same than dbus data dir -->
sl@0
    97
  <!-- includedir>system.d</includedir -->
sl@0
    98
 
sl@0
    99
  <!-- This is included last so local configuration can override what's 
sl@0
   100
       in this standard file -->
sl@0
   101
  <!-- include ignore_missing="yes">system-local.conf include -->
sl@0
   102
sl@0
   103
  <include if_selinux_enabled="yes" selinux_root_relative="yes">contexts/dbus_contexts</include>
sl@0
   104
sl@0
   105
</busconfig>