summaryrefstree
path: root/etc/dbus-1/system.d/obex.conf
blob: 4cbea4db693bf8cb9ee9b9746c78a04d0c5f685a (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
<!-- This configuration file specifies the required security policies
     for Bluetooth core daemon to work. -->

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- ../system.conf have denied everything, so we just punch some holes -->

  <policy user="root">
    <allow own="org.bluez.obex"/>
    <allow send_destination="org.bluez.obex"/>

    <!-- allow root to send to agents -->
    <allow send_interface="org.bluez.obex.Manager"/>
    <allow send_interface="org.bluez.obex.Error"/>
    <allow send_interface="org.bluez.obex.Transfer"/>
    <allow send_interface="org.bluez.obex.Session"/>
    <allow send_interface="org.bluez.obex.Agent"/>
  </policy>

  <policy context="default">
    <allow own="org.bluez.obex.client"/>
    <allow send_destination="org.bluez.obex.client"/>
    <allow send_interface="org.bluez.obex.client.Agent"/>
  </policy>

</busconfig>