summaryrefslogtreecommitdiff
path: root/test/data/valid-config-files/forbidding.conf.in
blob: d145613c06811104fd7577e6b2e403cf244a4719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
  <!-- Our well-known bus type, don't change this -->
  <type>session</type>
  <listen>@TEST_LISTEN@</listen>

  <policy context="default">
    <!-- Allow everything -->
    <allow send_destination="*"/>
    <allow receive_sender="*"/>
    <allow own="*"/>

    <!-- Exception: some messages are forbidden -->
    <deny send_interface="com.example.CannotSend"/>

    <deny send_interface="com.example.CannotBroadcast" send_broadcast="true"/>
    <deny send_interface="com.example.CannotUnicast" send_broadcast="false"/>

    <!-- A more long-winded way to spell the same things. -->
    <deny send_interface="com.example.CannotBroadcast2"/>
    <allow send_interface="com.example.CannotBroadcast2" send_broadcast="false"/>
    <deny send_interface="com.example.CannotUnicast2"/>
    <allow send_interface="com.example.CannotUnicast2" send_broadcast="true"/>

    <deny receive_interface="com.example.CannotReceive"/>
  </policy>
</busconfig>