2005-05-05 Havoc Pennington <hp@redhat.com>
[platform/upstream/dbus.git] / test / data / valid-config-files / many-rules.conf
1 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
2  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
3 <busconfig>
4   <user>mybususer</user>
5   <listen>unix:path=/foo/bar</listen>
6   <listen>tcp:port=1234</listen>
7   <includedir>basic.d</includedir>
8   <servicedir>/usr/share/foo</servicedir>
9   <include ignore_missing="yes">nonexistent.conf</include>
10   <policy context="default">
11     <allow user="*"/>
12     <deny send_interface="org.freedesktop.System" send_member="Reboot"/> 
13     <deny receive_interface="org.freedesktop.System" receive_member="Reboot"/>
14     <deny send_path="/foo/bar/SystemObjectThing" send_member="Reboot"/> 
15     <deny own="org.freedesktop.System"/>
16     <deny send_destination="org.freedesktop.System"/>
17     <deny receive_sender="org.freedesktop.System"/>
18     <deny user="root"/>
19     <deny group="root"/>
20     <allow send_type="error"/>
21     <allow send_type="method_call"/>
22     <allow send_type="method_return"/>
23     <allow send_type="signal"/>
24     <deny send_destination="org.freedesktop.Bar" send_interface="org.freedesktop.Foo"/>
25     <deny send_destination="org.freedesktop.Bar" send_interface="org.freedesktop.Foo" send_type="method_call"/>
26   </policy>
27
28   <policy context="mandatory">
29     <allow user="*"/>
30     <deny send_interface="org.freedesktop.System" send_member="Reboot"/> 
31     <deny receive_interface="org.freedesktop.System" receive_member="Reboot"/>
32     <deny send_path="/foo/bar/SystemObjectThing" send_member="Reboot"/> 
33     <deny own="org.freedesktop.System"/>
34     <deny send_destination="org.freedesktop.System"/>
35     <deny receive_sender="org.freedesktop.System"/>
36     <deny user="root"/>
37     <deny group="root"/>
38     <allow send_type="error"/>
39     <allow send_type="method_call"/>
40     <allow send_type="method_return"/>
41     <allow send_type="signal"/>
42     <deny send_destination="org.freedesktop.Bar" send_interface="org.freedesktop.Foo"/>
43     <deny send_destination="org.freedesktop.Bar" send_interface="org.freedesktop.Foo" send_type="method_call"/>
44   </policy>
45
46   <limit name="max_incoming_bytes">5000</limit>   
47   <limit name="max_outgoing_bytes">5000</limit>
48   <limit name="max_message_size">300</limit>
49   <limit name="service_start_timeout">5000</limit>
50   <limit name="auth_timeout">6000</limit>
51   <limit name="max_completed_connections">50</limit>  
52   <limit name="max_incomplete_connections">80</limit>
53   <limit name="max_connections_per_user">64</limit>
54   <limit name="max_pending_service_starts">64</limit>
55   <limit name="max_names_per_connection">256</limit>
56   <limit name="max_match_rules_per_connection">512</limit>
57                                    
58 </busconfig>