4 |
- |
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 can own the Avahi service -->
|
|
|
7 |
<policy user="avahi">
|
|
|
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_destination="org.freedesktop.Avahi"
|
|
|
20 |
send_interface="org.freedesktop.Avahi.Server" send_member="SetHostName"/>
|
|
|
21 |
</policy>
|
|
|
22 |
|
|
|
23 |
<!-- Allow everything, including access to SetHostName to users of the group "avahi" -->
|
|
|
24 |
<policy group="avahi">
|
|
|
25 |
<allow send_destination="org.freedesktop.Avahi"/>
|
|
|
26 |
<allow receive_sender="org.freedesktop.Avahi"/>
|
|
|
27 |
</policy>
|
|
|
28 |
</busconfig>
|