mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-01 21:08:18 +02:00
* test/data/valid-config-files/system.d/test.conf: change to root for the user so warnings don't get printed * dbus/dbus-message.c: add dbus_message_get_path, dbus_message_set_path * dbus/dbus-object-tree.c (do_test_dispatch): add test of dispatching to a path * dbus/dbus-string.c (_dbus_string_validate_path): add * dbus/dbus-marshal.c (_dbus_demarshal_object_path): implement (_dbus_marshal_object_path): implement * dbus/dbus-protocol.h (DBUS_HEADER_FIELD_PATH): new header field to contain the path to the target object (DBUS_HEADER_FIELD_SENDER_SERVICE): rename DBUS_HEADER_FIELD_SENDER to explicitly say it's the sender service
20 lines
876 B
Text
20 lines
876 B
Text
<!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 root can own the FooService service, and
|
|
this user can only send the one kind of message -->
|
|
<policy user="root">
|
|
<allow own="org.foo.FooService"/>
|
|
<allow send_interface="org.foo.FooBroadcastInterface"/>
|
|
</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_interface="org.foo.FooBroadcastInterface" receive_service="org.foo.FooService"/>
|
|
</policy>
|
|
</busconfig>
|