192 |
- |
1 |
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
|
|
|
2 |
|
|
|
3 |
<!DOCTYPE busconfig PUBLIC
|
|
|
4 |
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
|
|
5 |
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
|
|
6 |
<busconfig>
|
|
|
7 |
|
|
|
8 |
<!-- Only root can own the service -->
|
|
|
9 |
<policy user="root">
|
|
|
10 |
<allow own="net.hadess.SensorProxy"/>
|
|
|
11 |
</policy>
|
|
|
12 |
|
|
|
13 |
<!-- Only Geoclue can access the compass -->
|
|
|
14 |
<policy user="geoclue">
|
|
|
15 |
<allow send_destination="net.hadess.SensorProxy" send_interface="net.hadess.SensorProxy.Compass" send_path="/net/hadess/SensorProxy/Compass"/>
|
|
|
16 |
<allow send_destination="net.hadess.SensorProxy" send_interface="org.freedesktop.DBus.Introspectable" send_path="/net/hadess/SensorProxy/Compass"/>
|
|
|
17 |
<allow send_destination="net.hadess.SensorProxy" send_interface="org.freedesktop.DBus.Properties" send_path="/net/hadess/SensorProxy/Compass"/>
|
|
|
18 |
<allow send_destination="net.hadess.SensorProxy" send_interface="org.freedesktop.DBus.Peer" send_path="/net/hadess/SensorProxy/Compass"/>
|
|
|
19 |
</policy>
|
|
|
20 |
|
|
|
21 |
<!-- Anyone can talk to the main interface -->
|
|
|
22 |
<policy context="default">
|
|
|
23 |
<allow send_destination="net.hadess.SensorProxy" send_interface="net.hadess.SensorProxy"/>
|
|
|
24 |
<allow send_destination="net.hadess.SensorProxy" send_interface="org.freedesktop.DBus.Introspectable"/>
|
|
|
25 |
<allow send_destination="net.hadess.SensorProxy" send_interface="org.freedesktop.DBus.Properties"/>
|
|
|
26 |
<allow send_destination="net.hadess.SensorProxy" send_interface="org.freedesktop.DBus.Peer"/>
|
|
|
27 |
<deny send_destination="net.hadess.SensorProxy" send_interface="org.freedesktop.DBus.Introspectable" send_path="/net/hadess/SensorProxy/Compass"/>
|
|
|
28 |
<deny send_destination="net.hadess.SensorProxy" send_interface="org.freedesktop.DBus.Properties" send_path="/net/hadess/SensorProxy/Compass"/>
|
|
|
29 |
<deny send_destination="net.hadess.SensorProxy" send_interface="org.freedesktop.DBus.Peer" send_path="/net/hadess/SensorProxy/Compass"/>
|
|
|
30 |
<!-- <deny send_destination="net.hadess.SensorProxy" send_interface="net.hadess.SensorProxy.Compass"/> -->
|
|
|
31 |
</policy>
|
|
|
32 |
|
|
|
33 |
</busconfig>
|