Files
OpenCellular/utility
Kees Cook 34d515c5c1 mount-encrypted: retry TPM open
If the TPM hits an error other than ENOENT during open(), retry for 5
seconds with 100ms polling delays. Also switch to on-demand opening
of TPM, so umount will not hit delays if tcsd keeps the TPM open at
shutdown time.

BUG=chrome-os-partner:15960
TEST=daisy build, mount ok with kernel patched to return EBUSY for a few
 opens, platform_EncryptedStateful passes.
BRANCH=None

Change-Id: Ia597622bb54ccc4366be2a0c960c518406e6c0b2
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/39445
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
2012-12-10 13:56:47 -08:00
..
2012-11-01 19:13:17 -07:00
2012-06-13 14:22:12 -07:00
2012-06-13 14:22:12 -07:00