1<!DOCTYPE busconfig PUBLIC
2          "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
3          "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
4<busconfig>
5
6  <!-- Only root or user @AVAHI_USER@ can own the Avahi service -->
7  <policy user="@AVAHI_USER@">
8    <allow own="org.freedesktop.Avahi"/>
9  </policy>
10
11  <!-- Allow anyone to invoke methods on Avahi server, except SetHostName -->
12  <policy context="default">
13    <allow send_destination="org.freedesktop.Avahi"/>
14    <allow receive_sender="org.freedesktop.Avahi"/>
15
16    <deny send_destination="org.freedesktop.Avahi"
17          send_interface="org.freedesktop.Avahi.Server" send_member="SetHostName"/>
18  </policy>
19
20  <!-- Allow everything, including access to SetHostName to users of the group "@AVAHI_PRIV_ACCESS_GROUP@" -->
21  <policy group="@AVAHI_PRIV_ACCESS_GROUP@">
22    <allow send_destination="org.freedesktop.Avahi"/>
23    <allow receive_sender="org.freedesktop.Avahi"/>
24  </policy>
25</busconfig>
26