summaryrefslogtreecommitdiffstats
path: root/src/tdebluez-common/org.trinitydesktop.tdebluez.conf
blob: fa48877524d7ea5e449ffd39c220f16968e3ec2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
  <!-- Only root can own the service -->
  <policy user="root">
    <allow own="org.trinitydesktop.tdebluez"/>
    <allow send_destination="org.bluez"/>
    <allow send_destination="org.trinitydesktop.tdebluez"/>
    <allow send_path="/org/trinitydesktop/tdebluez"
           send_interface="org.bluez.Agent1"/>
    <allow send_path="/org/trinitydesktop/tdebluez"
           send_interface="org.freedesktop.DBus.Introspectable"/>
  </policy>

  <policy at_console="true">
  <!-- Users with physical access to the machine are allowed access -->
    <allow send_destination="org.bluez"/>
    <allow send_destination="org.trinitydesktop.tdebluez"/>
    <allow send_path="/org/trinitydesktop/tdebluez"
           send_interface="org.freedesktop.DBus.Introspectable"/>
    <allow send_path="/org/trinitydesktop/tdebluez"
           send_interface="org.bluez.Agent1"/>
  </policy>

  <!-- allow users of bluetooth group to communicate -->
  <policy group="bluetooth">
    <allow own="org.trinitydesktop.tdebluez"/>
    <allow send_destination="org.bluez"/>
    <allow send_destination="org.trinitydesktop.tdebluez"/>
    <allow send_path="/org/trinitydesktop/tdebluez"
           send_interface="org.freedesktop.DBus.Introspectable"/>
    <allow send_path="/org/trinitydesktop/tdebluez"
           send_interface="org.bluez.Agent1"/>
  </policy>

  <policy context="default">
    <!-- Everyone else is denied access -->
    <deny send_destination="org.trinitydesktop.tdebluez"/>
  </policy>
</busconfig>