<!-- initial version, based on /etc/dbus-1/system.d/avahi-dbus.conf, with thanks -->
<!DOCTYPE busconfig PUBLIC
          "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
          "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- Allow users "root" and "shairport-sync" to own the Shairport Sync MPRIS service -->
  <policy user="shairport-sync">
    <allow own="org.mpris.MediaPlayer2.ShairportSync"/>
  </policy>
  <policy user="root">
    <allow own="org.mpris.MediaPlayer2.ShairportSync"/>
  </policy>

  <!-- Allow anyone to invoke methods on Shairport Sync MPRIS server -->
  <policy context="default">
     <allow send_destination="org.mpris.MediaPlayer2.ShairportSync"/>
    <allow receive_sender="org.mpris.MediaPlayer2.ShairportSync"/>
  </policy>

</busconfig>
