setEnvironmentVariable DBus method for wpasupplicant
dcbw at redhat.com
Fri Jul 25 13:07:50 EDT 2008
On Thu, 2008-07-24 at 02:29 +0900, David Smith wrote:
> For implementing PKCS#11 support in the network manager gnome applet
> using gnome keyring as the backing store, it's necessary to tell
> wpasupplicant the environment variable of GNOME_KEYRING_SOCKET before
> loading the gnome keyring PKCS#11 library. This socket will be protected
> to the local user, but since wpasupplicant must run as root, it should
> be able to access it and indeed it must.
> This issue is currently being discussed in network manager's bugzilla at
> http://bugzilla.gnome.org/show_bug.cgi?id=537239 .
> Attached is a patch to add a DBus interface to set environment variables
> in wpasupplicant. I hope this is an acceptable compromise. In the long
> term, a better interface from keyring might be made available and then
> any necessary changes to wpasupplicant could be made at that time, but
> for now this is a rather trivial addition that would primarily be useful
> for working with the current implementation.
I think the real fix for this is to get Gnome Keyring using D-Bus, not
sockets. That needs to be done anyway. This sort of call in the
supplicant seems really ugly to me.
More information about the HostAP