<!-- This configuration file specifies the required security policies
     for bluez-pin 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 context="default">
    <allow own="org.handhelds.gpe.bluez"/>

    <allow send_destination="org.handhelds.gpe.bluez"/>
    <allow receive_sender="org.handhelds.gpe.bluez"/>

    <allow send_path="/org/handhelds/gpe/bluez/PinAgent"/>
  </policy>

  <policy context="default">
    <allow own="org.bluez.PinAgent"/>

    <allow send_destination="org.bluez.PinAgent"/>
    <allow receive_sender="org.bluez.PinAgent"/>

    <allow send_path="/org/bluez/PinAgent"/>
  </policy>

</busconfig>
