From 1fd74670b3b0feb31971d3814aa355057cb4f008 Mon Sep 17 00:00:00 2001 From: Nick Bofferding Date: Fri, 24 Mar 2017 16:57:21 -0500 Subject: Securely load targeting binary (HBD) when secureboot compiled RTC: 167774 Change-Id: Id422001e8c0e489efdd466f58ad8cd79978737ee Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38432 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Tested-by: Jenkins OP Build CI Reviewed-by: Daniel M. Crowell --- src/usr/targeting/attrrp.C | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/usr/targeting/attrrp.C') diff --git a/src/usr/targeting/attrrp.C b/src/usr/targeting/attrrp.C index f67ac831f..2536f2769 100755 --- a/src/usr/targeting/attrrp.C +++ b/src/usr/targeting/attrrp.C @@ -49,6 +49,7 @@ #include #include #include +#include using namespace INITSERVICE; using namespace ERRORLOG; @@ -286,12 +287,25 @@ namespace TARGETING do { + #ifdef CONFIG_SECUREBOOT + // Securely load HB_DATA section + l_errl = PNOR::loadSecureSection(PNOR::HB_DATA); + if (l_errl) + { + break; + } + #endif + // Locate attribute section in PNOR. PNOR::SectionInfo_t l_pnorSectionInfo; TargetingHeader* l_header = nullptr; l_errl = PNOR::getSectionInfo(PNOR::HB_DATA, l_pnorSectionInfo); - if (l_errl) break; + if(l_errl) + { + break; + } + if(!iv_isMpipl) { // Find attribute section header. -- cgit v1.2.1