avahi-dbus.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. <!-- Only root or user avahi can own the Avahi service -->
  6. <policy user="avahi">
  7. <allow own="org.freedesktop.Avahi"/>
  8. </policy>
  9. <policy user="root">
  10. <allow own="org.freedesktop.Avahi"/>
  11. </policy>
  12. <!-- Allow anyone to invoke methods on Avahi server, except SetHostName -->
  13. <policy context="default">
  14. <allow send_destination="org.freedesktop.Avahi"/>
  15. <allow receive_sender="org.freedesktop.Avahi"/>
  16. <deny send_destination="org.freedesktop.Avahi"
  17. send_interface="org.freedesktop.Avahi.Server" send_member="SetHostName"/>
  18. </policy>
  19. <!-- Allow everything, including access to SetHostName to users of the group "adm" -->
  20. <policy group="adm">
  21. <allow send_destination="org.freedesktop.Avahi"/>
  22. <allow receive_sender="org.freedesktop.Avahi"/>
  23. </policy>
  24. <policy user="root">
  25. <allow send_destination="org.freedesktop.Avahi"/>
  26. <allow receive_sender="org.freedesktop.Avahi"/>
  27. </policy>
  28. </busconfig>