aboutsummaryrefslogtreecommitdiff
path: root/libstb/status_codes.h
diff options
context:
space:
mode:
authorClaudio Carvalho <cclaudio@linux.vnet.ibm.com>2016-11-01 20:40:25 -0200
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-11-02 17:06:03 +1100
commitf9f3d0e2b20e01c32baf6546137dc9cdf0bc516e (patch)
treeaf8a8cd8208ea691b39b433086dec028639afdec /libstb/status_codes.h
parent20db137e82039f9dafd42352525f1e8a8b7995ea (diff)
downloadskiboot-f9f3d0e2b20e01c32baf6546137dc9cdf0bc516e.zip
skiboot-f9f3d0e2b20e01c32baf6546137dc9cdf0bc516e.tar.gz
skiboot-f9f3d0e2b20e01c32baf6546137dc9cdf0bc516e.tar.bz2
tpm_extendl: disable all failed tpms rather than only the first
Each tpm_chip structure is associated with one tpm device and one firmware event log. If tpm_extendl() returns when the first tpm_chip operation (pcr extend or event log record) fails, the remaining registered tpm_chips will be in an inconsistent state, i.e, missing one measurement. This walks through all registered tpm_chips and disable all tpm_chips that failed rather than only first one. Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com> [stewart@linux.vnet.ibm.com: assert(tpm) in disable_tpm] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libstb/status_codes.h')
-rw-r--r--libstb/status_codes.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libstb/status_codes.h b/libstb/status_codes.h
index 64f9325..e67c17b 100644
--- a/libstb/status_codes.h
+++ b/libstb/status_codes.h
@@ -28,8 +28,7 @@
/* trusted boot */
#define STB_TRUSTED_MODE_DISABLED 200
-#define STB_EVENTLOG_FAILED -200
-#define STB_PCR_EXTEND_FAILED -201
+#define STB_MEASURE_FAILED -200
/* TPM */
#define STB_TPM_OVERFLOW -300