1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ofdbus/dbus/data/valid-config-files/system.d/test.conf Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,20 @@
1.4 +<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
1.5 + "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
1.6 +<busconfig>
1.7 + <!-- The following demonstrates how to punch holes in a default deny-all
1.8 + policy so that a particular user can own a service, and other
1.9 + connections can get messages from it -->
1.10 +
1.11 + <!-- Only root can own the FooService service, and
1.12 + this user can only send the one kind of message -->
1.13 + <policy user="root">
1.14 + <allow own="org.foo.FooService"/>
1.15 + <allow send_interface="org.foo.FooBroadcastInterface"/>
1.16 + </policy>
1.17 +
1.18 + <!-- Allow any connection to receive the message, but
1.19 + only if the message is sent by the owner of FooService -->
1.20 + <policy context="default">
1.21 + <allow receive_interface="org.foo.FooBroadcastInterface" receive_sender="org.foo.FooService"/>
1.22 + </policy>
1.23 +</busconfig>