Support 'tpmc setbgloballock' for tpm2 case
authorAndrey Pronin <apronin@google.com>
Mon, 18 Jul 2016 18:23:12 +0000 (11:23 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 21 Jul 2016 10:15:44 +0000 (03:15 -0700)
commita071c7697883e3a73570cf0c75fa5673cc83673d
tree9a6e60e724f47507a49e5faef8850526845438b3
parenta15f82296dea0695cb60562f8bc12f0807697c85
Support 'tpmc setbgloballock' for tpm2 case

Some scripts call 'tpmc setbgloballock' or 'tpmc block'. For tpm2
it should be equivalent to pplock, i.e. perform rollback protection
actions: writelock for NVRAM firmware index and disable platform
hierarchy.

BRANCH=none
BUG=chrome-os-partner:55210
TEST=run 'tpmc block' on kevin, check that it attempts pplock

Change-Id: I51fae6bd111cf3ff3c1dfbed7441868abad8fc15
Reviewed-on: https://chromium-review.googlesource.com/361381
Commit-Ready: Dan Shi <dshi@google.com>
Tested-by: Andrey Pronin <apronin@chromium.org>
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
utility/tpmc.c