mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-26 13:28:11 +02:00
* dbus/dbus-message.c (decode_string_field): support FIELD_SENDER (dbus_message_is_error): fix this function * bus/dbus-daemon-1.1: clarify logic on when <deny>/<allow> rules match * bus/policy.c (bus_client_policy_check_can_receive): fix code to reflect clarified man page (bus_client_policy_check_can_send): ditto * bus/session.conf.in: fixup * bus/system.conf.in: fixup
20 lines
896 B
Text
20 lines
896 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 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_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>
|