After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 694307 - port vpn plugins to libsecret
port vpn plugins to libsecret
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on: 697740
Blocks:
 
 
Reported: 2013-02-20 20:40 UTC by Dan Winship
Modified: 2013-04-12 12:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
auth-dialog: port to libsecret (9.08 KB, patch)
2013-04-10 16:50 UTC, Dan Winship
none Details | Review
auth-dialog: port to libsecret (5.97 KB, patch)
2013-04-10 16:50 UTC, Dan Winship
reviewed Details | Review
auth-dialog: port to libsecret (6.33 KB, patch)
2013-04-10 16:50 UTC, Dan Winship
reviewed Details | Review
auth-dialog: port to libsecret (5.26 KB, patch)
2013-04-10 16:50 UTC, Dan Winship
reviewed Details | Review
auth-dialog: port to libsecret (6.33 KB, patch)
2013-04-10 16:50 UTC, Dan Winship
reviewed Details | Review

Description Dan Winship 2013-02-20 20:40:50 UTC
the vpn plugins all need to be ported to libsecret too
Comment 1 Dan Winship 2013-04-10 16:50:35 UTC
Created attachment 241192 [details] [review]
auth-dialog: port to libsecret
Comment 2 Dan Winship 2013-04-10 16:50:43 UTC
Created attachment 241193 [details] [review]
auth-dialog: port to libsecret
Comment 3 Dan Winship 2013-04-10 16:50:48 UTC
Created attachment 241194 [details] [review]
auth-dialog: port to libsecret
Comment 4 Dan Winship 2013-04-10 16:50:54 UTC
Created attachment 241195 [details] [review]
auth-dialog: port to libsecret
Comment 5 Dan Winship 2013-04-10 16:50:59 UTC
Created attachment 241196 [details] [review]
auth-dialog: port to libsecret
Comment 6 Dan Williams 2013-04-11 20:21:31 UTC
First off the only part of the patches that identifies which plugin it's for is the Makefile.am patch hunks...  but anyway.

Are we concerned about the loss of gnome_keyring_memory_strdup() and gnome_keyring_memory_free()?  From the look of it, nothing will zero out the memory after freeing the passwords.
Comment 7 Dan Williams 2013-04-11 20:23:52 UTC
Also, make sure you remove auth-dialog/vpn-password-dialog.c from POTFILES.in in all the plugins that have it.  Otherwise 'make distcheck' breaks.
Comment 8 Dan Williams 2013-04-11 20:52:19 UTC
Review of attachment 241193 [details] [review]:

Some indent issues, that's all.

::: auth-dialog/main.c
@@ +74,3 @@
+									   SECRET_SEARCH_ALL | SECRET_SEARCH_UNLOCK | SECRET_SEARCH_LOAD_SECRETS,
+									   NULL, NULL);
+	if (list && list->data) {

Indent here is off.

@@ +81,3 @@
+			secret = g_strdup (secret_value_get (value, NULL));
+			secret_value_unref (value);
+        }

This brace is mis-indented.
Comment 9 Dan Williams 2013-04-11 20:53:05 UTC
Review of attachment 241194 [details] [review]:

::: auth-dialog/main.c
@@ +83,3 @@
+			secret = g_strdup (secret_value_get (value, NULL));
+			secret_value_unref (value);
+        }

Indent issues.
Comment 10 Dan Williams 2013-04-11 20:53:38 UTC
Review of attachment 241195 [details] [review]:

::: auth-dialog/main.c
@@ +81,3 @@
+			secret = g_strdup (secret_value_get (value, NULL));
+			secret_value_unref (value);
+        }

indent issues.
Comment 11 Dan Williams 2013-04-11 20:54:01 UTC
Review of attachment 241196 [details] [review]:

::: auth-dialog/main.c
@@ +81,3 @@
+			secret = g_strdup (secret_value_get (value, NULL));
+			secret_value_unref (value);
+        }

indent issues
Comment 12 Dan Williams 2013-04-11 20:54:57 UTC
So basically, for all the patches only indent issues need to be fixed.
Comment 13 Dan Williams 2013-04-11 20:55:59 UTC
(In reply to comment #7)
> Also, make sure you remove auth-dialog/vpn-password-dialog.c from POTFILES.in
> in all the plugins that have it.  Otherwise 'make distcheck' breaks.

Ignore that, leftover from the vpn password dialog consolidation.  I'm fixing.
Comment 14 Dan Winship 2013-04-12 12:37:02 UTC
(In reply to comment #6)
> Are we concerned about the loss of gnome_keyring_memory_strdup() and
> gnome_keyring_memory_free()?  From the look of it, nothing will zero out the
> memory after freeing the passwords.

yeah, but the GtkEntry is going to "leak" its copy of the password too. And the shell will probably leak multiple copies of the string as it gets passed to and from JS.
Comment 15 Dan Winship 2013-04-12 12:47:56 UTC
pushed