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

Issue 3195018: Add a PCR extend call for measuring the dev mode boot flag. (Closed)

Created:
10 years, 4 months ago by gauravsh
Modified:
9 years, 6 months ago
CC:
chromium-os-reviews_chromium.org, Randall Spangler, Bill Richardson
Base URL:
http://src.chromium.org/git/vboot_reference.git
Visibility:
Public.

Description

Add a PCR extend call for measuring the dev mode boot flag. BUG=2083 TEST=manual Compiled with DISABLE_ROLLBACK unset. I need help testing this change - in particular, if the PCR 0 value is actually different in dev mode off vs. dev mode on. This can be done by invoking 'tpm_pcrread -p 0' at the shell. tpm_pcrread is part of the tpm_tools package. Change-Id: I0728fb776a0c9cb90d885e7a1c76ff6a1a41a17b

Patch Set 1 #

Patch Set 2 : fix space #

Total comments: 1

Patch Set 3 : wrap with RETURN_ON_FAILURE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -2 lines) Patch
M firmware/lib/rollback_index.c View 1 2 2 chunks +21 lines, -1 line 0 comments Download
M firmware/linktest/main.c View 1 chunk +3 lines, -0 lines 0 comments Download
M firmware/version.c View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
gauravsh
10 years, 4 months ago (2010-08-23 22:39:53 UTC) #1
Randall Spangler
http://codereview.chromium.org/3195018/diff/2001/3001 File firmware/lib/rollback_index.c (right): http://codereview.chromium.org/3195018/diff/2001/3001#newcode300 firmware/lib/rollback_index.c:300: TlclExtend(DEV_MODE_PCR, DEV_MODE_ON_SHA1_DIGEST, out_digest); Wrap in RETURN_ON_FAILURE(), unless it's ok ...
10 years, 4 months ago (2010-08-23 22:44:14 UTC) #2
gauravsh
On 2010/08/23 22:44:14, Randall Spangler wrote: > http://codereview.chromium.org/3195018/diff/2001/3001 > File firmware/lib/rollback_index.c (right): > > http://codereview.chromium.org/3195018/diff/2001/3001#newcode300 ...
10 years, 4 months ago (2010-08-23 22:56:15 UTC) #3
Luigi Semenzato
Maybe I misunderstand how PCRs work, but I thought you would pass in simple values, ...
10 years, 4 months ago (2010-08-24 01:00:00 UTC) #4
Luigi Semenzato
BTW, I'll be happy to help test this tomorrow morning. On 2010/08/24 01:00:00, Luigi Semenzato ...
10 years, 4 months ago (2010-08-24 01:01:04 UTC) #5
gauravsh
On Mon, Aug 23, 2010 at 6:00 PM, <semenzato@chromium.org> wrote: > Maybe I misunderstand how ...
10 years, 4 months ago (2010-08-24 01:03:17 UTC) #6
Luigi Semenzato
I think that's because the measured data is usually much larger than 20 bytes---but not ...
10 years, 4 months ago (2010-08-24 01:17:37 UTC) #7
Randall Spangler
10 years, 4 months ago (2010-08-24 22:48:27 UTC) #8
Code LGTM.

(I'll leave it up to you and Luigi to determine if you want to keep the hashes,
or pass in a simpler input.)

Powered by Google App Engine
This is Rietveld 408576698