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

Issue 334433002: Update the super MAC after performing MAC validation. (Closed)

Created:
6 years, 6 months ago by erikwright (departed)
Modified:
6 years, 6 months ago
Reviewers:
gab
CC:
chromium-reviews, robertshield
Visibility:
Public.

Description

Update the super MAC after performing MAC validation. If, for any reason, the super MAC is missing or invalid but all individual MACs are valid, the super MAC would remain invalid. This could occur if the super MAC were deleted by an external process, but in the future it could also occur after the initial import of MACs from Local State to Protected Preferences. In that import we would not create a super MAC but each of the individual protected preferences would be valid. If none of the protected preferences changes during that execution we would not end up writing a new super MAC and a subsequent launch would not be able to "TrustedInitialize" newly protected values. BUG=372547

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M chrome/browser/prefs/pref_hash_filter.cc View 1 chunk +2 lines, -0 lines 1 comment Download
M chrome/browser/prefs/pref_hash_filter_unittest.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_hash_store_impl.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_hash_store_transaction.h View 1 chunk +4 lines, -0 lines 3 comments Download

Messages

Total messages: 9 (0 generated)
erikwright (departed)
gab: PTAL.
6 years, 6 months ago (2014-06-11 18:41:15 UTC) #1
erikwright (departed)
On 2014/06/11 18:41:15, erikwright wrote: > gab: PTAL. I'll add a test prior to commit.
6 years, 6 months ago (2014-06-11 18:41:35 UTC) #2
gab
Actually do we even need this? Previously we would have needed this when we originally ...
6 years, 6 months ago (2014-06-11 19:44:01 UTC) #3
gab
On 2014/06/11 19:44:01, gab wrote: > Actually do we even need this? > > Previously ...
6 years, 6 months ago (2014-06-11 19:44:27 UTC) #4
erikwright (departed)
PTAL. I added two scenarios where this change is required - one affects the current ...
6 years, 6 months ago (2014-06-11 20:20:17 UTC) #5
gab
lgtm w/ test and comments below https://codereview.chromium.org/334433002/diff/1/chrome/browser/prefs/pref_hash_filter.cc File chrome/browser/prefs/pref_hash_filter.cc (right): https://codereview.chromium.org/334433002/diff/1/chrome/browser/prefs/pref_hash_filter.cc#newcode183 chrome/browser/prefs/pref_hash_filter.cc:183: prefs_altered = true; ...
6 years, 6 months ago (2014-06-11 21:28:04 UTC) #6
erikwright (departed)
I now believe this CL to be wrong. With two pref stores sharing a hash ...
6 years, 6 months ago (2014-06-12 14:02:51 UTC) #7
gab
On 2014/06/12 14:02:51, erikwright wrote: > I now believe this CL to be wrong. > ...
6 years, 6 months ago (2014-06-12 14:28:12 UTC) #8
gab
6 years, 6 months ago (2014-06-18 15:50:27 UTC) #9
On 2014/06/12 14:28:12, gab wrote:
> On 2014/06/12 14:02:51, erikwright wrote:
> > I now believe this CL to be wrong.
> > 
> > With two pref stores sharing a hash store, the validation of the first store
> > will update the super MAC, leading the second store to mistakenly
> > TrustedInitialize new values. I'm holding off on this for now.
> 
> Oh right of course, good catch, this only makes sense in a model where each
> store is independent.
> 
> I'm happy to see this land as part of your other CL. It's small enough that it
> won't really add complexity to the main CL IMO.

This is landing as part of https://codereview.chromium.org/324493002/ as
discussed above.

Closing.

Powered by Google App Engine
This is Rietveld 408576698