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 bluetooth can own the btmanagerd service -->
7  <policy user="bluetooth">
8    <allow own="org.chromium.bluetooth"/>
9    <allow own="org.chromium.bluetooth.Manager"/>
10    <allow own="org.chromium.bluetooth.ManagerCallback"/>
11  </policy>
12  <policy user="root">
13    <allow own="org.chromium.bluetooth"/>
14    <allow own="org.chromium.bluetooth.Manager"/>
15    <allow own="org.chromium.bluetooth.ManagerCallback"/>
16  </policy>
17
18  <!-- Allow anyone to invoke methods on btmanagerd server,  -->
19  <!-- Will likely change this as the project matures  -->
20  <policy context="default">
21    <allow send_destination="org.chromium.bluetooth"/>
22    <allow send_destination="org.chromium.bluetooth.Manager"/>
23    <allow send_destination="org.chromium.bluetooth.ManagerCallback"/>
24  </policy>
25
26  <!-- Allow access to everything to the group "bluetooth" -->
27  <policy group="bluetooth">
28    <allow send_destination="org.chromium.bluetooth"/>
29    <allow send_destination="org.chromium.bluetooth.Manager"/>
30    <allow send_destination="org.chromium.bluetooth.ManagerCallback"/>
31  </policy>
32  <policy user="root">
33    <allow send_destination="org.chromium.bluetooth"/>
34    <allow send_destination="org.chromium.bluetooth.Manager"/>
35    <allow send_destination="org.chromium.bluetooth.ManagerCallback"/>
36  </policy>
37</busconfig>
38