NetworkManager/system-settings/plugins
Daniel Gnoutcheff a4af7967c9 ifupdown: get_secrets: don't override DBus handler
ifupdown only supports secrets for wireless connections, so attempts to
get non-wireless secrets need to fail. Previously, this was accomplished
by overriding NMSysconfigSettingsClass->get_secrets, the handler for
DBus GetSecrets() method calls. This had some problems:

- It created an information leak. The first thing the
  NMSysconfigConnection implementation does is verify that the caller is
  authorized to get secrets information, but nm-ifupdown-connection ends
  up performing its additional check before authorization happens. Thus,
  unauthorized users are able to determine that some connections don't
  have secrets.  This will become more significant when secrets handling
  is revamped.

- We'd really like to devirtualize these DBus method call handlers.
  They were inherited from from NMRemoteConnection, where we needed
  these functions to be virtual so that user and system settings
  services could implement them differently.  That is no longer needed.
  ifupdown was the last place were we actually "needed" these functions
  to be virtual.

With this commit, we fix these problems by overriding
nm_settings_connection_interface_get_secrets instead.
2010-08-06 13:05:47 -04:00
..
ifcfg-rh libnm-glib: remove NMSettingsInterface 2010-08-06 13:05:47 -04:00
ifcfg-suse ifcfg-suse: Clean up, upstream the patch which has been in use for a while 2009-12-21 12:07:18 +02:00
ifupdown ifupdown: get_secrets: don't override DBus handler 2010-08-06 13:05:47 -04:00
keyfile libnm-glib: remove NMSettingsInterface 2010-08-06 13:05:47 -04:00
Makefile.am 2008-11-25 Dan Williams <dcbw@redhat.com> 2008-11-25 22:42:21 +00:00