Skip to content

Commit

Permalink
stb: Correctly error out when no PCR for resource
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
stewartsmith committed Feb 9, 2018
1 parent e15174a commit 5cb93cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libstb/secureboot.c
@@ -1,4 +1,4 @@
/* Copyright 2013-2017 IBM Corp.
/* Copyright 2013-2018 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -177,6 +177,7 @@ int secureboot_verify(enum resource_id id, void *buf, size_t len)
prlog(PR_EMERG, "container NOT VERIFIED, resource_id=%d "
"unknown\n", id);
secureboot_enforce();
return -1;
}

if (!secure_init) {
Expand Down

0 comments on commit 5cb93cd

Please sign in to comment.