diff mbox series

[RFC,v5,16/16] libstb/trustedboot: Map UV image measurement to PCR4

Message ID 20200227204023.22125-17-grimm@linux.ibm.com
State Superseded
Headers show
Series Ultravisor support in skiboot | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (82aed17a5468aff6b600ee1694a10a60f942c018)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Ryan Grimm Feb. 27, 2020, 8:40 p.m. UTC
From: Claudio Carvalho <cclaudio@linux.ibm.com>

This maps the ultravisor image to be measured to PCR4. The image is
automatically verified and  measured hen it is loaded from PNOR.

Signed-off-by: Claudio Carvalho <cclaudio@linux.ibm.com>
---
 libstb/trustedboot.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Alexey Kardashevskiy March 12, 2020, 1:47 a.m. UTC | #1
On 28/02/2020 07:40, Ryan Grimm wrote:
> From: Claudio Carvalho <cclaudio@linux.ibm.com>
> 
> This maps the ultravisor image to be measured to PCR4. The image is
> automatically verified and  measured hen it is loaded from PNOR.


This seems to belong to 12/16. And btw 12/16 itself seems to belong to
02/16, this will reduce the number of code changed twice across the
series. Thanks,

> 
> Signed-off-by: Claudio Carvalho <cclaudio@linux.ibm.com>
> ---
>  libstb/trustedboot.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libstb/trustedboot.c b/libstb/trustedboot.c
> index 3f977de1..87f3b6bf 100644
> --- a/libstb/trustedboot.c
> +++ b/libstb/trustedboot.c
> @@ -45,6 +45,7 @@ static struct {
>  	{ RESOURCE_ID_KERNEL,		PCR_4},
>  	{ RESOURCE_ID_CAPP,		PCR_4},
>  	{ RESOURCE_ID_VERSION,		PCR_4}, /* Also data for Hostboot */
> +	{ RESOURCE_ID_UV_IMAGE,		PCR_4},
>  };
>  
>  /*
>
diff mbox series

Patch

diff --git a/libstb/trustedboot.c b/libstb/trustedboot.c
index 3f977de1..87f3b6bf 100644
--- a/libstb/trustedboot.c
+++ b/libstb/trustedboot.c
@@ -45,6 +45,7 @@  static struct {
 	{ RESOURCE_ID_KERNEL,		PCR_4},
 	{ RESOURCE_ID_CAPP,		PCR_4},
 	{ RESOURCE_ID_VERSION,		PCR_4}, /* Also data for Hostboot */
+	{ RESOURCE_ID_UV_IMAGE,		PCR_4},
 };
 
 /*