NetworkManager/introspection
Tambet Ingo d2cf6fa75c 2008-05-08 Tambet Ingo <tambet@gmail.com>
Use PolicyKit to authorize the system settings' AddConnection method
    	and the system settings connections' Update and Delete methods.

    	* libnm-glib/nm-settings.c (impl_exported_connection_update)
    	(impl_exported_connection_delete, nm_exported_connection_update)
    	(nm_exported_connection_delete): Return boolean and fill GError
    	to notify the callers of the reasons why it might have failed.

    	* libnm-glib/nm-dbus-settings-system.c
    	(nm_dbus_settings_system_add_connection): Return the error from dbus
    	call so that the callers can see why it failed.

    	* libnm-glib/nm-dbus-connection.c (update, delete): Update the
    	signatures.

    	* system-settings/src/nm-polkit-helpers.[ch]: Implement.

    	* system-settings/src/nm-sysconfig-connection.[ch]: Implement. New
    	abstract base class that checks PolicyKit permissions.

    	* system-settings/src/dbus-settings.c:
    	(impl_settings_add_connection): Check the policy before carring out
    	the request.

    	* system-settings/plugins/keyfile/nm-keyfile-connection.c:
    	Inherit from NMSysconfigConnection, check the policies before
    	allowing updating or removing.

    	* system-settings/plugins/ifcfg-suse/nm-suse-connection.c:
    	Inherit from NMSysconfigConnection.

    	* introspection/nm-exported-connection.xml: Annotate "Update" and
    	"Delete" methods with async flag so that the implementations can get
    	access to DBusGMethodInvocation.

    	* system-settings/src/dbus-settings.c
    	(settings_add_connection_check_privileges): Implement.
    	(impl_settings_add_connection): Check the privileges before adding a new
    	connection. Improve error reporting.

    	* introspection/nm-settings-system.xml: Make the 'AddConnection' method
    	async so that the implementation can access DBusGMethodInvocation.

    	* configure.in: Check for PolicyKit.

    	* policy/org.freedesktop.network-manager-settings.system.policy:
    	New file.

    	* policy/Makefile.am: Install the policy file.

    	* configure.in: Add 'policy' subdir.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3646 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-05-09 06:33:30 +00:00
..
all.xml 2008-03-26 Dan Williams <dcbw@redhat.com> 2008-03-26 13:43:01 +00:00
errors.xml 2008-02-27 Dan Williams <dcbw@redhat.com> 2008-02-28 02:07:21 +00:00
generic-types.xml 2008-04-15 Dan Williams <dcbw@redhat.com> 2008-04-15 20:39:34 +00:00
Makefile.am 2008-04-07 Dan Williams <dcbw@redhat.com> 2008-04-08 01:36:39 +00:00
nm-access-point.xml 2008-04-15 Dan Williams <dcbw@redhat.com> 2008-04-15 20:39:34 +00:00
nm-active-connection.xml 2008-04-21 Dan Williams <dcbw@redhat.com> 2008-04-22 00:28:02 +00:00
nm-device-802-3-ethernet.xml 2008-03-12 Dan Williams <dcbw@redhat.com> 2008-03-12 16:12:39 +00:00
nm-device-802-11-wireless.xml 2008-04-15 Dan Williams <dcbw@redhat.com> 2008-04-15 20:39:34 +00:00
nm-device-cdma.xml 2008-03-25 Dan Williams <dcbw@redhat.com> 2008-03-25 11:31:33 +00:00
nm-device-gsm.xml 2008-03-25 Dan Williams <dcbw@redhat.com> 2008-03-25 11:31:33 +00:00
nm-device.xml 2008-04-07 Dan Williams <dcbw@redhat.com> 2008-04-08 02:58:02 +00:00
nm-exported-connection.xml 2008-05-08 Tambet Ingo <tambet@gmail.com> 2008-05-09 06:33:30 +00:00
nm-ip4-config.xml 2008-05-06 Dan Williams <dcbw@redhat.com> 2008-05-06 21:53:22 +00:00
nm-manager-client.xml 2008-03-20 Dan Williams <dcbw@redhat.com> 2008-03-20 19:56:12 +00:00
nm-manager.xml 2008-03-20 Dan Williams <dcbw@redhat.com> 2008-03-20 19:56:12 +00:00
nm-ppp-manager.xml Implement PPPoE. 2008-03-11 16:37:41 +00:00
nm-settings-system.xml 2008-05-08 Tambet Ingo <tambet@gmail.com> 2008-05-09 06:33:30 +00:00
nm-settings.xml Clean up formatting 2008-04-04 14:57:02 +00:00
nm-vpn-connection.xml 2008-04-21 Dan Williams <dcbw@redhat.com> 2008-04-22 00:28:02 +00:00
nm-vpn-plugin.xml 2008-02-27 Dan Williams <dcbw@redhat.com> 2008-02-28 02:07:21 +00:00
vpn-errors.xml 2008-02-27 Dan Williams <dcbw@redhat.com> 2008-02-28 02:07:21 +00:00