summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/spnorrp.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/pnor/spnorrp.C')
-rw-r--r--src/usr/pnor/spnorrp.C71
1 files changed, 23 insertions, 48 deletions
diff --git a/src/usr/pnor/spnorrp.C b/src/usr/pnor/spnorrp.C
index 90c53d712..29dd6de64 100644
--- a/src/usr/pnor/spnorrp.C
+++ b/src/usr/pnor/spnorrp.C
@@ -328,38 +328,30 @@ uint64_t SPnorRP::verifySections(SectionId i_id,
if (!l_info.secure)
{
- if(SECUREBOOT::bestEffortPolicy())
- {
- TRACFCOMP(g_trac_pnor,"PNOR::verifySections> called on unsecured section - Best effort policy skipping");
- break;
- }
- else
- {
- TRACFCOMP(g_trac_pnor,ERR_MRK"PNOR::verifySections> called on "
+ TRACFCOMP(g_trac_pnor,ERR_MRK"PNOR::verifySections> called on "
"unsecured section");
- /*@
- * @errortype
- * @severity ERRL_SEV_CRITICAL_SYS_TERM
- * @moduleid PNOR::MOD_SPNORRP_VERIFYSECTIONS
- * @reasoncode PNOR::RC_UNSIGNED_PNOR_SECTION
- * @userdata1 PNOR section requested to verify
- * @userdata2 0
- * @devdesc Cannot verify unsigned PNOR section
- * @custdesc Security failure: unable to securely load
- * requested firmware.
- */
- l_errhdl = new ERRORLOG::ErrlEntry(
- ERRORLOG::ERRL_SEV_CRITICAL_SYS_TERM,
- PNOR::MOD_SPNORRP_VERIFYSECTIONS,
- PNOR::RC_UNSIGNED_PNOR_SECTION,
- TO_UINT64(i_id),
- 0,
- true /*Add HB SW Callout*/);
- l_errhdl->collectTrace(PNOR_COMP_NAME);
- l_errhdl->collectTrace(SECURE_COMP_NAME);
- break;
- }
+ /*@
+ * @errortype
+ * @severity ERRL_SEV_CRITICAL_SYS_TERM
+ * @moduleid PNOR::MOD_SPNORRP_VERIFYSECTIONS
+ * @reasoncode PNOR::RC_UNSIGNED_PNOR_SECTION
+ * @userdata1 PNOR section requested to verify
+ * @userdata2 0
+ * @devdesc Cannot verify unsigned PNOR section
+ * @custdesc Security failure: unable to securely load
+ * requested firmware.
+ */
+ l_errhdl = new ERRORLOG::ErrlEntry(
+ ERRORLOG::ERRL_SEV_CRITICAL_SYS_TERM,
+ PNOR::MOD_SPNORRP_VERIFYSECTIONS,
+ PNOR::RC_UNSIGNED_PNOR_SECTION,
+ TO_UINT64(i_id),
+ 0,
+ true /*Add HB SW Callout*/);
+ l_errhdl->collectTrace(PNOR_COMP_NAME);
+ l_errhdl->collectTrace(SECURE_COMP_NAME);
+ break;
}
else
{
@@ -881,16 +873,8 @@ void SPnorRP::waitForMessage()
size_t l_sizeWithHdr = PAGESIZE + l_rec->textSize;
- bool l_wasLoadedAsBestEffort = false;
- if (l_rec->textSize == 0 &&
- SECUREBOOT::bestEffortPolicy())
- {
- // indicate that this section had been loaded
- // as "best effort"
- l_wasLoadedAsBestEffort = true;
- }
// if the section has an unsecured portion
- else if (l_sizeWithHdr != l_rec->infoSize)
+ if (l_sizeWithHdr != l_rec->infoSize)
{
TRACFCOMP( g_trac_pnor, ERR_MRK"SPnorRP::waitForMessage> Attempting to unload an unsupported section: 0x%X textsize+hdr: 0x%llX infosize: 0x%llX (the two sizes must be equal)", l_id, l_sizeWithHdr, l_rec->infoSize);
/*@
@@ -922,15 +906,6 @@ void SPnorRP::waitForMessage()
break;
}
- if (l_wasLoadedAsBestEffort)
- {
- l_rec->secAddr = nullptr;
- l_rec->textSize = 0;
- l_rec->infoSize = 0;
- l_rec->refCount = 0;
- break;
- }
-
l_errhdl = removePages(l_rec->secAddr,
l_sizeWithHdr);
if (l_errhdl)
OpenPOWER on IntegriCloud