diff options
author | Trent Lloyd <lathiat@bur.st> | 2005-06-04 19:32:26 +0000 |
---|---|---|
committer | Trent Lloyd <lathiat@bur.st> | 2005-06-04 19:32:26 +0000 |
commit | 64dff8088b43bd2f367f35e18bf02e73c8052dec (patch) | |
tree | 563672936e396c4897ded72ca2c51dfb2345bcf3 /daemon | |
parent | 781b79d165e9997dc026d90ee9ea2dbc32252f39 (diff) |
* Add some use documentation to the daemon
* Create the structure for avahi-client
* Start building avahi-client and daemon by default
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@100 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
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> |