summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2019-12-17 11:15:25 +0300
committerThomaiyar, Richard Marian <richard.marian.thomaiyar@intel.com>2019-12-23 14:19:09 +0300
commit5a03fdc6a119b65ecf320622ce2809e340749fa9 (patch)
tree420da11eb76f1e8a55d551d46c0f82f1b1c245ee
parent04698fc86d2759c05f406c90889ef71bb4f4d5c3 (diff)
downloadprovingground-5a03fdc6a119b65ecf320622ce2809e340749fa9.tar.xz
Fix: Ignore Timer when in validation unsecure
Ignore timer handler, when we are in validation unsecure mode, and reside in validation unsecure mode itself. i.e. Validation unsecure must be persistent and must not be reseted based on a timer, which will get activated when we execute manufacturing command. Tested: 1. Verfied the Get Security mode command, ipmitool raw 0x30 0xB3 and saw no changes in validation unsecure mode after mfg command execution, and after 15 minutes timeout. Change-Id: Ifb338e13bf3f0a923bc488284cced8448043a2e5 Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
-rw-r--r--special-mode-mgr/src/specialmodemgr.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/special-mode-mgr/src/specialmodemgr.cpp b/special-mode-mgr/src/specialmodemgr.cpp
index b685550..132b26e 100644
--- a/special-mode-mgr/src/specialmodemgr.cpp
+++ b/special-mode-mgr/src/specialmodemgr.cpp
@@ -264,6 +264,13 @@ void SpecialModeMgr::updateTimer(int countInSeconds)
"Error in special mode timer");
return;
}
+#ifdef BMC_VALIDATION_UNSECURE_FEATURE
+ if (specialMode == secCtrl::SpecialMode::Modes::ValidationUnsecure)
+ {
+ // Don't reset, if in ValidationUnsecure mode
+ return;
+ }
+#endif
iface->set_property(
strSpecialMode,
secCtrl::convertForMessage(secCtrl::SpecialMode::Modes::None));