diff options
author | Dan Williams <dcbw@redhat.com> | 2007-10-19 04:55:05 +0000 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-10-19 04:55:05 +0000 |
commit | 42a732d9b921858544004f13fe7054fd1393a468 (patch) | |
tree | 7ffa7b19d3529beb3f832e209a741b9c9cb6c0e3 /introspection | |
parent | c2f361392fe98948bd6a12f89648ca6c445260c1 (diff) | |
download | NetworkManager-42a732d9b921858544004f13fe7054fd1393a468.tar.gz |
2007-10-19 Dan Williams <dcbw@redhat.com>
Split the GetSecrets() call off to a separate D-Bus interface so that it
can be more easily locked down with D-Bus policy. Only 'root' (ie, NM)
should be able to call GetSecrets().
* include/NetworkManager.h
- Define the connection secrets D-Bus interface
* src/vpn-manager/nm-vpn-connection.c
- (clear_need_auth): get the right proxy object for the connection
secrets interface
- (get_connection_secrets): use the connection secrets proxy; send
empty hints in get secrets request
* src/nm-activation-request.c
- (nm_act_request_request_connection_secrets): use the connection
secrets proxy; send empty hints in get secrets request
* src/nm-manager.c
src/nm-manager.h
- (connection_get_settings_cb): set the connection secrets proxy on
the connection object too
- (internal_new_connection_cb): create the connection secrets proxy
* introspection/nm-settings-connection.xml
- Define Connection.Secrets interface and move GetSecrets there
- Add a 'hints' argument to GetSecrets
* libnm-glib/nm-settings.c
libnm-glib/nm-settings.h
- (impl_connection_settings_get_secrets): add 'hints' argument
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2989 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'introspection')
-rw-r--r-- | introspection/nm-settings-connection.xml | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/introspection/nm-settings-connection.xml b/introspection/nm-settings-connection.xml index 454c17c485..407ea90903 100644 --- a/introspection/nm-settings-connection.xml +++ b/introspection/nm-settings-connection.xml @@ -14,21 +14,29 @@ <arg name="settings" type="a{sa{sv}}" direction="out"/> </method> + <signal name="Updated"> + <arg name="settings" type="a{sa{sv}}"/> + </signal> + + <signal name="Removed"> + </signal> + + </interface> + + <!-- Secrets have a separate interface so that they can be locked down --> + <interface name="org.freedesktop.NetworkManagerSettings.Connection.Secrets"> + <method name="GetSecrets"> <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_connection_settings_get_secrets"/> <annotation name="org.freedesktop.DBus.GLib.Async" value=""/> <arg name="setting_name" type="s" direction="in"/> + <!-- Array of strings of key names in the Setting for which NM thinks + a secrets may be required. --> + <arg name="hints" type="as" direction="in"/> <arg name="request_new" type="b" direction="in"/> <arg name="secrets" type="a{sv}" direction="out"/> </method> - <signal name="Updated"> - <arg name="settings" type="a{sa{sv}}"/> - </signal> - - <signal name="Removed"> - </signal> - </interface> </node> |