diff options
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/README | 6 | ||||
-rw-r--r-- | daemon/avahi.conf.example | 23 |
2 files changed, 29 insertions, 0 deletions
diff --git a/daemon/README b/daemon/README new file mode 100644 index 0000000..e5f6405 --- /dev/null +++ b/daemon/README @@ -0,0 +1,6 @@ +On most systems you will need to setup a security policy for avahi to allow it to own the Avahi service on the system d-bus. + +You can find an example in avahi.conf.example, this usually goes in /etc/dbus-1/system.d +You will need to change the username 'lathiat' to whatever username you use for testing this code (later it will be a dedicated 'avahi' user) + +In future this stuff should be handled automatically but for now some manual setup is required. diff --git a/daemon/avahi.conf.example b/daemon/avahi.conf.example new file mode 100644 index 0000000..39e9de9 --- /dev/null +++ b/daemon/avahi.conf.example @@ -0,0 +1,23 @@ +<!DOCTYPE busconfig PUBLIC + "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" + "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> +<busconfig> + + <policy user="lathiat"> + <allow own="org.freedesktop.Avahi"/> + </policy> + <policy user="root"> + <allow own="org.freedesktop.Avahi"/> + </policy> + + <!-- Allow anyone to invoke methods on the Manager and Device interfaces --> + <policy context="default"> + <allow send_interface="org.freedesktop.Avahi"/> + + <allow receive_interface="org.freedesktop.Avahi" + receive_sender="org.freedesktop.Avahi"/> + </policy> + + <limit name="max_match_rules_per_connection">512</limit> + +</busconfig> |