From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: zhichao.gao@intel.com) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by groups.io with SMTP; Sun, 21 Jul 2019 21:52:49 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jul 2019 21:52:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,293,1559545200"; d="scan'208";a="188527042" Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by fmsmga001.fm.intel.com with ESMTP; 21 Jul 2019 21:52:47 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Ray Ni , Star Zeng , Liming gao , Sean Brogan , Michael Turner , Bret Barkelew Subject: [PATCH 0/5] Add new lib SecurityLockAuditLib to log message for security event Date: Mon, 22 Jul 2019 12:01:59 +0800 Message-Id: <20190722040204.33108-1-zhichao.gao@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2006 For clearly see where security events occur in the platform. Add SecurityLockAuditLib to provide a consistant debug log message format that can be easily parsed in a post processing step. Cc: Jian J Wang Cc: Hao A Wu Cc: Ray Ni Cc: Star Zeng Cc: Liming gao Cc: Sean Brogan Cc: Michael Turner Cc: Bret Barkelew Bret Barkelew (5): MdeModulePkg: Add header file for SecurityLockAuditLib MdeModulePkg/SecurityLockAuditDebugLib: Add lib instance MdeModulePkg/SecurityLockAuditLibNull: Add null version lib MdeModulePkg: Add SecuritAuditLib to dec file MdeModulePkg/PiSmmIpl: Use SecurityLockAuditLib for debug MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c | 2 + MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf | 1 + .../Include/Library/SecurityLockAuditLib.h | 47 ++++++++++++++++ .../SecurityLockAuditDebugLib.c | 53 +++++++++++++++++++ .../SecurityLockAuditDebugLib.inf | 29 ++++++++++ .../SecurityLockAuditLibNull.c | 32 +++++++++++ .../SecurityLockAuditLibNull.inf | 27 ++++++++++ MdeModulePkg/MdeModulePkg.dec | 4 ++ MdeModulePkg/MdeModulePkg.dsc | 3 ++ 9 files changed, 198 insertions(+) create mode 100644 MdeModulePkg/Include/Library/SecurityLockAuditLib.h create mode 100644 MdeModulePkg/Library/SecurityLockAuditDebugLib/SecurityLockAuditDebugLib.c create mode 100644 MdeModulePkg/Library/SecurityLockAuditDebugLib/SecurityLockAuditDebugLib.inf create mode 100644 MdeModulePkg/Library/SecurityLockAuditLibNull/SecurityLockAuditLibNull.c create mode 100644 MdeModulePkg/Library/SecurityLockAuditLibNull/SecurityLockAuditLibNull.inf -- 2.21.0.windows.1