Skip to content

Commit

Permalink
Merge branch 'master' into hash_ek
Browse files Browse the repository at this point in the history
  • Loading branch information
lkatalin authored Jun 3, 2022
2 parents 8833138 + aed51c7 commit de8cbf5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packit-ci.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

summary: run keylime e2e tests

environment:
TPM_BINARY_MEASUREMENTS: /var/tmp/binary_bios_measurements

prepare:
how: shell
script:
Expand All @@ -20,6 +23,7 @@
- /functional/basic-attestation-without-mtls
- /functional/basic-attestation-with-unpriviledged-agent
- /functional/keylime_tenant-commands-on-localhost
- /functional/measured-boot-swtpm-sanity

adjust:
# prepare step adjustments
Expand Down
9 changes: 9 additions & 0 deletions src/quotes_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,15 @@ pub async fn integrity(
if let Some(measuredboot_ml_file) = &data.measuredboot_ml_file {
let mut ml = Vec::<u8>::new();
let mut f = measuredboot_ml_file.lock().unwrap(); //#[allow_ci]
if let Err(e) = f.rewind() {
debug!("Failed to rewind measured boot file: {}", e);
return HttpResponse::InternalServerError().json(
JsonWrapper::error(
500,
"Unable to retrieve quote".to_string(),
),
);
}
mb_measurement_list = match f.read_to_end(&mut ml) {
Ok(_) => Some(base64::encode(ml)),
Err(e) => {
Expand Down

0 comments on commit de8cbf5

Please sign in to comment.