os/ossrv/ofdbus/dbus/data/valid-config-files/system.d/test.conf
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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   <!-- The following demonstrates how to punch holes in a default deny-all 
     5        policy so that a particular user can own a service, and other 
     6        connections can get messages from it -->
     7 
     8   <!-- Only root can own the FooService service, and 
     9        this user can only send the one kind of message -->
    10   <policy user="root">
    11     <allow own="org.foo.FooService"/>
    12     <allow send_interface="org.foo.FooBroadcastInterface"/>
    13   </policy>
    14 
    15   <!-- Allow any connection to receive the message, but 
    16        only if the message is sent by the owner of FooService -->
    17   <policy context="default">
    18     <allow receive_interface="org.foo.FooBroadcastInterface" receive_sender="org.foo.FooService"/>
    19   </policy>
    20 </busconfig>