<?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>
  <policy context="default">
    <!--                                -->
    <!--  net.openvpn.v3.netcfg         -->
    <!--                                -->

    <!--  In main netcfg object: /net/openvpn/v3/netcfg -->
    <allow send_interface="net.openvpn.v3.netcfg"
           send_destination="net.openvpn.v3.netcfg"
           send_type="method_call"
           send_member="CreateVirtualInterface"/>

    <allow send_interface="net.openvpn.v3.netcfg"
           send_destination="net.openvpn.v3.netcfg"
           send_type="method_call"
           send_member="ProtectSocket"/>

    <allow send_interface="net.openvpn.v3.netcfg"
           send_destination="net.openvpn.v3.netcfg"
           send_type="method_call"
           send_member="Cleanup"/>

    <!--  In netcfg managed device object: /net/openvpn/v3/netcfg/$DEVICE -->
    <allow send_destination="net.openvpn.v3.netcfg"
           send_interface="net.openvpn.v3.netcfg"
           send_type="method_call"
           send_member="AddIPAddress"/>
    <allow send_destination="net.openvpn.v3.netcfg"
           send_interface="net.openvpn.v3.netcfg"
           send_type="method_call"
           send_member="SetRemoteAddress"/>
    <allow send_destination="net.openvpn.v3.netcfg"
           send_interface="net.openvpn.v3.netcfg"
           send_type="method_call"
           send_member="AddNetworks"/>
    <allow send_destination="net.openvpn.v3.netcfg"
           send_interface="net.openvpn.v3.netcfg"
           send_type="method_call"
           send_member="AddDNS"/>
    <allow send_destination="net.openvpn.v3.netcfg"
           send_interface="net.openvpn.v3.netcfg"
           send_type="method_call"
           send_member="AddDNSSearch"/>
    <allow send_destination="net.openvpn.v3.netcfg"
           send_interface="net.openvpn.v3.netcfg"
           send_type="method_call"
           send_member="Establish"/>
    <allow send_interface="net.openvpn.v3.netcfg"
           send_destination="net.openvpn.v3.netcfg"
           send_type="method_call"
           send_member="Disable"/>
    <allow send_interface="net.openvpn.v3.netcfg"
           send_destination="net.openvpn.v3.netcfg"
           send_type="method_call"
           send_member="Destroy"/>

    <allow send_destination="net.openvpn.v3.netcfg"
           send_interface="org.freedesktop.DBus.Properties"
           send_type="method_call"
           send_member="Get"/>
    <allow send_destination="net.openvpn.v3.netcfg"
           send_interface="org.freedesktop.DBus.Properties"
           send_type="method_call"
           send_member="GetAll"/>
    <allow send_destination="net.openvpn.v3.netcfg"
           send_interface="org.freedesktop.DBus.Properties"
           send_type="method_call"
           send_member="Set" />

    <allow send_destination="net.openvpn.v3.netcfg"
           send_interface="org.freedesktop.DBus.Peer"
           send_type="method_call"
           send_member="Ping"/>
 </policy>
</busconfig>
