test.conf revision 893d859ed4ab785f46485fad28779f026fa166a1
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 fooserviceuser can own the FooService service, and 9 this user can only send the one kind of message --> 10 <policy user="fooserviceuser"> 11 <allow own="org.foo.FooService"/> 12 <allow send="org.foo.FooBroadcastMessage"/> 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="org.foo.FooBroadcastMessage" receive_from="org.foo.FooService"/> 19 </policy> 20</busconfig> 21