<!-- This configuration file specifies the required security policies
     for routing adapter for KP audio server 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.genivi.audiomanager.routing.pulseaudio"/>
    <allow send_destination="org.genivi.audiomanager.routing.pulseaudio"/>
    <allow send_interface="org.genivi.audiomanager.routing.pulseaudio"/>
    <allow receive_sender="org.genivi.audiomanager.routing.pulseaudio"/>
  </policy>

  <policy user="adit">
    <allow own="org.genivi.audiomanager.routing.pulseaudio"/>
    <allow send_destination="org.genivi.audiomanager.routing.pulseaudio"/>
    <allow send_interface="org.genivi.audiomanager.routing.pulseaudio"/>
    <allow receive_sender="org.genivi.audiomanager.routing.pulseaudio"/>
  </policy>

  <policy at_console="true">
    <allow own="org.genivi.audiomanager.routing.pulseaudio"/>
    <allow send_destination="org.genivi.audiomanager.routing.pulseaudio"/>
    <allow send_interface="org.genivi.audiomanager.routing.pulseaudio"/>
    <allow receive_sender="org.genivi.audiomanager.routing.pulseaudio"/>
  </policy>

  <policy context="default">
    <allow send_destination="org.genivi.audiomanager"/>
  </policy>

</busconfig>
