]> git.meshlink.io Git - catta/blob - avahi-daemon/avahi-dbus.conf.in
* Correct comment reference to the priviledged access group in
[catta] / avahi-daemon / avahi-dbus.conf.in
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   <policy user="root">
11     <allow own="org.freedesktop.Avahi"/>
12   </policy>
13
14   <!-- Allow anyone to invoke methods on Avahi server, except SetHostName -->
15   <policy context="default">
16     <allow send_destination="org.freedesktop.Avahi"/>
17     <allow receive_sender="org.freedesktop.Avahi"/>
18
19     <deny send_interface="org.freedesktop.Avahi.Server" send_member="SetHostName"/>
20   </policy>
21
22   <!-- Allow everything, including access to SetHostName to users of the group "@AVAHI_PRIV_ACCESS_GROUP@" -->
23   <policy group="@AVAHI_PRIV_ACCESS_GROUP@">
24     <allow send_destination="org.freedesktop.Avahi"/>
25     <allow receive_sender="org.freedesktop.Avahi"/>
26   </policy>
27 </busconfig>