diff options
author | Havoc Pennington <hp@redhat.com> | 2003-04-28 19:29:42 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-04-28 19:29:42 +0000 |
commit | 893d859ed4ab785f46485fad28779f026fa166a1 (patch) | |
tree | 7e4791276313367c96ad042d711da409a22e902b /test/data/valid-config-files | |
parent | e8d396efef695b9868b0112c4a6266c97678fa8a (diff) |
2003-04-28 Havoc Pennington <hp@redhat.com>dbus-0.10
* configure.in: 0.10
* NEWS: update
* bus/system.conf.in: add <includedir>system.d</includedir>
* dbus/dbus-userdb.c (_dbus_user_database_lookup): fix bug when
username was provided but not uid
* bus/config-parser.c (struct BusConfigParser): keep track of
whether the parser is toplevel or was included; change some
of the error handling if it's included.
Diffstat (limited to 'test/data/valid-config-files')
-rw-r--r-- | test/data/valid-config-files/system.d/test.conf | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/data/valid-config-files/system.d/test.conf b/test/data/valid-config-files/system.d/test.conf new file mode 100644 index 00000000..a683679e --- /dev/null +++ b/test/data/valid-config-files/system.d/test.conf @@ -0,0 +1,20 @@ +<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" + "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> +<busconfig> + <!-- The following demonstrates how to punch holes in a default deny-all + policy so that a particular user can own a service, and other + connections can get messages from it --> + + <!-- Only fooserviceuser can own the FooService service, and + this user can only send the one kind of message --> + <policy user="fooserviceuser"> + <allow own="org.foo.FooService"/> + <allow send="org.foo.FooBroadcastMessage"/> + </policy> + + <!-- Allow any connection to receive the message, but + only if the message is sent by the owner of FooService --> + <policy context="default"> + <allow receive="org.foo.FooBroadcastMessage" receive_from="org.foo.FooService"/> + </policy> +</busconfig> |