summaryrefslogtreecommitdiff
path: root/test/data/valid-config-files/forbidding.conf.in
blob: 6a674f88e8348961578bc5dae3cea46f188b58bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!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 receive_interface="com.example.CannotReceive"/>
  </policy>
</busconfig>