This commit adds code to pull the bios measurements file to the ACA

This commit is contained in:
Cyrus 2020-10-13 13:51:14 -04:00
parent f9b0ce413d
commit 2c97666bb9
3 changed files with 7 additions and 0 deletions

View File

@ -777,6 +777,10 @@ public abstract class AbstractAttestationCertificateAuthority
}
}
if (dv.hasLivelog()) {
LOG.error("Live Log Exists");
}
// Get TPM info, currently unimplemented
TPMInfo tpm;
try {

View File

@ -60,6 +60,7 @@ message DeviceInfo {
optional bytes pcrslist = 5;
optional bytes logfile = 6;
optional bytes swidfile = 7;
optional bytes livelog = 8;
}
message IdentityClaim {

View File

@ -75,6 +75,8 @@ int provision() {
try {
dv.set_logfile(hirs::file_utils::fileToString(rim_file));
dv.set_swidfile(hirs::file_utils::fileToString(swid_file));
dv.set_livelog(hirs::file_utils::fileToString(
"/sys/kernel/security/tpm0/binary_bios_measurements"));
} catch (HirsRuntimeException& hirsRuntimeException) {
logger.error(hirsRuntimeException.what());
}