Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Issue 2441653002: Always unlock all libsecret items in Password Manager and OSCrypt (Closed)

Created:
4 years, 2 months ago by cfroussios
Modified:
4 years, 1 month ago
Reviewers:
vasilii
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unlock all libsecret items in Password Manager and OSCrypt The various libsecret methods have different contracts w.r.t. unlocking keyring items. Of the currently used methods, only secret_service_store will trigger unlocking as necessary. As a result, operations fail in various ways until someone performs the first store operation. With the CL, the libsecret native backend of Password Manager is set to explicitly request unlocking of items on every call. OSCrypt avoids using secret_service_lookup, which apparently ignores locked items. BUG=657828, 631171 Committed: https://crrev.com/51e9b147713a497adcb228ae729a799872a35237 Cr-Commit-Position: refs/heads/master@{#427067}

Patch Set 1 #

Patch Set 2 : Fix for os_crypt #

Patch Set 3 : leak #

Patch Set 4 : Error handling #

Total comments: 25

Patch Set 5 : fun with errors #

Patch Set 6 : fix #

Total comments: 2

Patch Set 7 : format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -53 lines) Patch
M chrome/browser/password_manager/native_backend_libsecret.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/native_backend_libsecret_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/os_crypt/key_storage_libsecret.cc View 1 2 3 4 5 6 4 chunks +54 lines, -7 lines 0 comments Download
M components/os_crypt/key_storage_libsecret_unittest.cc View 1 2 3 4 6 chunks +31 lines, -34 lines 0 comments Download
M components/os_crypt/libsecret_util_linux.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/os_crypt/libsecret_util_linux.cc View 1 3 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 45 (32 generated)
cfroussios
4 years, 2 months ago (2016-10-21 11:41:17 UTC) #16
vasilii
https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret.cc File components/os_crypt/key_storage_libsecret.cc (right): https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret.cc#newcode41 components/os_crypt/key_storage_libsecret.cc:41: LOG(ERROR) << "OSCrypt found more than one encryption keys."; ...
4 years, 2 months ago (2016-10-21 14:10:07 UTC) #19
cfroussios
https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret.cc File components/os_crypt/key_storage_libsecret.cc (right): https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret.cc#newcode41 components/os_crypt/key_storage_libsecret.cc:41: LOG(ERROR) << "OSCrypt found more than one encryption keys."; ...
4 years, 2 months ago (2016-10-21 17:56:36 UTC) #26
vasilii
https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret.cc File components/os_crypt/key_storage_libsecret.cc (right): https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret.cc#newcode44 components/os_crypt/key_storage_libsecret.cc:44: g_list_free(secret_items); On 2016/10/21 17:56:35, cfroussios wrote: > On 2016/10/21 ...
4 years, 1 month ago (2016-10-24 10:41:14 UTC) #29
cfroussios
https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret.cc File components/os_crypt/key_storage_libsecret.cc (right): https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret.cc#newcode44 components/os_crypt/key_storage_libsecret.cc:44: g_list_free(secret_items); On 2016/10/24 10:41:14, vasilii wrote: > On 2016/10/21 ...
4 years, 1 month ago (2016-10-24 11:25:55 UTC) #30
vasilii
https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret_unittest.cc File components/os_crypt/key_storage_libsecret_unittest.cc (right): https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret_unittest.cc#newcode169 components/os_crypt/key_storage_libsecret_unittest.cc:169: (decltype(&::secret_item_get_secret))mock_secret_item_get_secret; On 2016/10/24 11:25:55, cfroussios wrote: > On 2016/10/24 ...
4 years, 1 month ago (2016-10-24 12:39:35 UTC) #31
vasilii
https://codereview.chromium.org/2441653002/diff/140001/components/os_crypt/key_storage_libsecret.cc File components/os_crypt/key_storage_libsecret.cc (right): https://codereview.chromium.org/2441653002/diff/140001/components/os_crypt/key_storage_libsecret.cc#newcode67 components/os_crypt/key_storage_libsecret.cc:67: VLOG(1) << "Libsecret lookup failed."; indent 2 spaces.
4 years, 1 month ago (2016-10-24 12:56:00 UTC) #32
cfroussios
https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret_unittest.cc File components/os_crypt/key_storage_libsecret_unittest.cc (right): https://codereview.chromium.org/2441653002/diff/60001/components/os_crypt/key_storage_libsecret_unittest.cc#newcode169 components/os_crypt/key_storage_libsecret_unittest.cc:169: (decltype(&::secret_item_get_secret))mock_secret_item_get_secret; On 2016/10/24 12:39:35, vasilii wrote: > On 2016/10/24 ...
4 years, 1 month ago (2016-10-24 13:12:30 UTC) #35
vasilii
LGTM with the promise that the pattern is fixed later.
4 years, 1 month ago (2016-10-24 13:35:12 UTC) #36
cfroussios
On 2016/10/24 13:35:12, vasilii wrote: > LGTM with the promise that the pattern is fixed ...
4 years, 1 month ago (2016-10-24 14:14:57 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2441653002/160001
4 years, 1 month ago (2016-10-24 14:15:18 UTC) #41
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 1 month ago (2016-10-24 14:29:04 UTC) #43
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 14:30:36 UTC) #45
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/51e9b147713a497adcb228ae729a799872a35237
Cr-Commit-Position: refs/heads/master@{#427067}

Powered by Google App Engine
This is Rietveld 408576698