]> git.meshlink.io Git - catta/blobdiff - avahi-daemon/avahi-dbus.conf.in
fix avahi_netlink_new to allow multiple netlinks per process
[catta] / avahi-daemon / avahi-dbus.conf.in
index c570754e75ea16c864b94f9f4bc72ace85a7c233..1df0cc47815422ffe4304adefcb2a20538a3983f 100644 (file)
@@ -1,6 +1,6 @@
 <!DOCTYPE busconfig PUBLIC
- "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
- "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
         "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
         "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
 <busconfig>
 
   <!-- Only root or user @AVAHI_USER@ can own the Avahi service -->
     <allow send_destination="org.freedesktop.Avahi"/>
     <allow receive_sender="org.freedesktop.Avahi"/>
 
-    <deny send_interface="org.freedesktop.Avahi.Server" send_member="SetHostName"/>
+    <deny send_destination="org.freedesktop.Avahi"
+          send_interface="org.freedesktop.Avahi.Server" send_member="SetHostName"/>
   </policy>
 
-  <!-- Allow everything, including access to SetHostName to users of the group "netdev" -->
+  <!-- Allow everything, including access to SetHostName to users of the group "@AVAHI_PRIV_ACCESS_GROUP@" -->
   <policy group="@AVAHI_PRIV_ACCESS_GROUP@">
     <allow send_destination="org.freedesktop.Avahi"/>
     <allow receive_sender="org.freedesktop.Avahi"/>
   </policy>
+  <policy user="root">
+    <allow send_destination="org.freedesktop.Avahi"/>
+    <allow receive_sender="org.freedesktop.Avahi"/>
+  </policy>
 </busconfig>