added NetworkManager prototype DBUS policy, applet config
authorMartin Willi <martin@strongswan.org>
Thu, 13 Mar 2008 14:41:27 +0000 (14:41 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 13 Mar 2008 14:41:27 +0000 (14:41 -0000)
src/charon/plugins/dbus/nm-strongswan.conf [new file with mode: 0644]
src/charon/plugins/dbus/nm-strongswan.name [new file with mode: 0644]

diff --git a/src/charon/plugins/dbus/nm-strongswan.conf b/src/charon/plugins/dbus/nm-strongswan.conf
new file mode 100644 (file)
index 0000000..0206175
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+        <policy user="root">
+                <allow own="org.freedesktop.NetworkManager.strongswan"/>
+
+                <allow send_destination="org.freedesktop.NetworkManager.strongswan"/>
+                <allow send_interface="org.freedesktop.NetworkManager.strongswan"/>
+        </policy>
+        <policy at_console="true">
+                <allow send_destination="org.freedesktop.NetworkManager.strongswan"/>
+                <allow send_interface="org.freedesktop.NetworkManager.strongswan"/>
+        </policy>
+        <policy context="default">
+                <deny own="org.strongswan.charon"/>
+                <deny send_destination="org.freedesktop.NetworkManager.strongswan"/>
+                <deny send_interface="org.freedesktop.NetworkManager.strongswan"/>
+        </policy>
+</busconfig>
+
diff --git a/src/charon/plugins/dbus/nm-strongswan.name b/src/charon/plugins/dbus/nm-strongswan.name
new file mode 100644 (file)
index 0000000..2f6ed06
--- /dev/null
@@ -0,0 +1,8 @@
+[VPN Connection]
+name=strongSwan
+service=org.freedesktop.NetworkManager.strongswan
+program=/usr/local/libexec/ipsec/charon
+
+[GNOME]
+auth-dialog=/home/martin/strongswan/trunk/src/networkmanager/nm_applet_auth
+properties=/home/martin/strongswan/trunk/src/networkmanager/strongswan.so