<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE busconfig PUBLIC
  "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

<busconfig>
  <!-- Only the root user can own the Mountall name -->
  <policy user="root">
    <allow own="com.ubuntu.Mountall.Server" />
  </policy>

  <!-- Permit the root user to invoke all of the methods on Mountall-->
  <policy user="root">
    <allow send_destination="com.ubuntu.Mountall.Server"
	   send_interface="org.freedesktop.DBus.Properties" />

    <allow send_destination="com.ubuntu.Mountall.Server"
	   send_interface="com.ubuntu.Mountall0_1.Server" />
  </policy>

  <!-- Allow any user to introspect Mountall's interfaces, to obtain the
       values of properties (but not set them) and to invoke selected
       methods on Mountall that are used to walk information. -->
  <policy context="default">
    <allow send_destination="com.ubuntu.Mountall.Server"
	   send_interface="org.freedesktop.DBus.Introspectable" />

    <allow send_destination="com.ubuntu.Mountall.Server"
	   send_interface="org.freedesktop.DBus.Properties"
	   send_type="method_call" send_member="Get" />
    <allow send_destination="com.ubuntu.Mountall.Server"
	   send_interface="org.freedesktop.DBus.Properties"
	   send_type="method_call" send_member="GetAll" />
  </policy>
</busconfig>
