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

Issue 2461453002: Add a dummy entry with libsecret when initializing OSCrypt. (Closed)

Created:
4 years, 1 month ago by cfroussios
Modified:
4 years, 1 month ago
Reviewers:
vasilii
CC:
chromium-reviews, Lei Zhang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a dummy entry with libsecret when initializing OSCrypt. Under certain conditions, gnome libsecret methods that perform a lookup in keyring may ignore a locked keyring and return empty results, instead of unlocking said keyring. Store operations are unaffected by this quirk (or bug, presumably). With this change, we store a dummy entry during the initialisation of OSCrypt. This ensures that the default keyring gets unlocked and is available for future reads. This solution is also applied to Password Manager, before performing calls to secret_service_search_sync. This solution should be temporary, until the underlying issue gets fixed or there is an official workaround. BUG=660005, 631171 Committed: https://crrev.com/f3a8dfe38fab661729155dac82c8ab7d8422c2e1 Cr-Commit-Position: refs/heads/master@{#428378}

Patch Set 1 #

Patch Set 2 : moved ensure to GetKey() #

Patch Set 3 : fixed test #

Total comments: 2

Patch Set 4 : password manager ensures #

Total comments: 6

Patch Set 5 : moved once check to password manager #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -3 lines) Patch
M chrome/browser/password_manager/native_backend_libsecret.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/native_backend_libsecret.cc View 1 2 3 4 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/native_backend_libsecret_unittest.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/os_crypt/key_storage_libsecret.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M components/os_crypt/key_storage_libsecret_unittest.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/os_crypt/libsecret_util_linux.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/os_crypt/libsecret_util_linux.cc View 1 2 3 4 2 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (25 generated)
cfroussios
4 years, 1 month ago (2016-10-28 09:04:56 UTC) #12
vasilii
Feedback on the description only: - http://crbug.com/660005 should link to the external bug for Keyring. ...
4 years, 1 month ago (2016-10-28 09:10:59 UTC) #13
cfroussios
On 2016/10/28 09:10:59, vasilii wrote: > Feedback on the description only: > - http://crbug.com/660005 should ...
4 years, 1 month ago (2016-10-28 09:17:59 UTC) #14
vasilii
On 2016/10/28 09:17:59, cfroussios wrote: > On 2016/10/28 09:10:59, vasilii wrote: > > Feedback on ...
4 years, 1 month ago (2016-10-28 09:36:18 UTC) #17
vasilii
https://codereview.chromium.org/2461453002/diff/40001/components/os_crypt/key_storage_libsecret.cc File components/os_crypt/key_storage_libsecret.cc (right): https://codereview.chromium.org/2461453002/diff/40001/components/os_crypt/key_storage_libsecret.cc#newcode76 components/os_crypt/key_storage_libsecret.cc:76: LibsecretLoader::EnsureKeyringUnlocked(); How often is this method called? Is it ...
4 years, 1 month ago (2016-10-28 09:36:24 UTC) #18
cfroussios
On 2016/10/28 09:36:18, vasilii wrote: > On 2016/10/28 09:17:59, cfroussios wrote: > > On 2016/10/28 ...
4 years, 1 month ago (2016-10-28 11:20:57 UTC) #21
cfroussios
https://codereview.chromium.org/2461453002/diff/40001/components/os_crypt/key_storage_libsecret.cc File components/os_crypt/key_storage_libsecret.cc (right): https://codereview.chromium.org/2461453002/diff/40001/components/os_crypt/key_storage_libsecret.cc#newcode76 components/os_crypt/key_storage_libsecret.cc:76: LibsecretLoader::EnsureKeyringUnlocked(); On 2016/10/28 09:36:24, vasilii wrote: > How often ...
4 years, 1 month ago (2016-10-28 11:21:22 UTC) #22
vasilii
On 2016/10/28 11:20:57, cfroussios wrote: > On 2016/10/28 09:36:18, vasilii wrote: > > On 2016/10/28 ...
4 years, 1 month ago (2016-10-28 12:55:55 UTC) #25
vasilii
https://codereview.chromium.org/2461453002/diff/60001/components/os_crypt/libsecret_util_linux.cc File components/os_crypt/libsecret_util_linux.cc (right): https://codereview.chromium.org/2461453002/diff/60001/components/os_crypt/libsecret_util_linux.cc#newcode27 components/os_crypt/libsecret_util_linux.cc:27: bool s_ensured_keyring_unlocked = false; Are you thread-safe? I'm not ...
4 years, 1 month ago (2016-10-28 12:56:06 UTC) #26
cfroussios
On 2016/10/28 12:55:55, vasilii wrote: > On 2016/10/28 11:20:57, cfroussios wrote: > > On 2016/10/28 ...
4 years, 1 month ago (2016-10-28 13:50:02 UTC) #27
cfroussios
https://codereview.chromium.org/2461453002/diff/60001/components/os_crypt/libsecret_util_linux.cc File components/os_crypt/libsecret_util_linux.cc (right): https://codereview.chromium.org/2461453002/diff/60001/components/os_crypt/libsecret_util_linux.cc#newcode27 components/os_crypt/libsecret_util_linux.cc:27: bool s_ensured_keyring_unlocked = false; On 2016/10/28 12:56:06, vasilii wrote: ...
4 years, 1 month ago (2016-10-28 13:50:12 UTC) #28
vasilii
https://codereview.chromium.org/2461453002/diff/60001/components/os_crypt/libsecret_util_linux.cc File components/os_crypt/libsecret_util_linux.cc (right): https://codereview.chromium.org/2461453002/diff/60001/components/os_crypt/libsecret_util_linux.cc#newcode27 components/os_crypt/libsecret_util_linux.cc:27: bool s_ensured_keyring_unlocked = false; On 2016/10/28 13:50:12, cfroussios wrote: ...
4 years, 1 month ago (2016-10-28 14:17:48 UTC) #30
cfroussios
https://codereview.chromium.org/2461453002/diff/60001/components/os_crypt/libsecret_util_linux.cc File components/os_crypt/libsecret_util_linux.cc (right): https://codereview.chromium.org/2461453002/diff/60001/components/os_crypt/libsecret_util_linux.cc#newcode27 components/os_crypt/libsecret_util_linux.cc:27: bool s_ensured_keyring_unlocked = false; On 2016/10/28 14:17:48, vasilii wrote: ...
4 years, 1 month ago (2016-10-28 14:36:39 UTC) #33
vasilii
lgtm
4 years, 1 month ago (2016-10-28 15:08:21 UTC) #34
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/2461453002/80001
4 years, 1 month ago (2016-10-28 15:25:15 UTC) #38
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-10-28 15:31:01 UTC) #40
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 15:49:04 UTC) #42
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f3a8dfe38fab661729155dac82c8ab7d8422c2e1
Cr-Commit-Position: refs/heads/master@{#428378}

Powered by Google App Engine
This is Rietveld 408576698