mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 21:10:08 +01:00
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
42 lines
1.4 KiB
XML
42 lines
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<node name="/">
|
|
|
|
<interface name="org.freedesktop.NetworkManagerSettings.Connection">
|
|
|
|
<method name="GetID">
|
|
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_connection_settings_get_id"/>
|
|
<arg name="id" type="s" direction="out"/>
|
|
</method>
|
|
|
|
<method name="GetSettings">
|
|
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_connection_settings_get_settings"/>
|
|
<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>
|
|
|
|
</interface>
|
|
|
|
</node>
|