From nobody Mon Feb 9 20:59:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+44090+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+44090+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1563771175; cv=none; d=zoho.com; s=zohoarc; b=cytuX/VvyNMzv5PEnd2W+JLnkTOAusCNxog3YGQ6RsRpYqrzoWlkWbcntoJN/Jt+LgCbBbhqw9GutoYSPuBoFbj/z8IpXGVuX6f125nm5p+e8nveFpNRc15zvNH25FwJg5ynnNmXfOXmVG/PLxMGvEpm74ibULdCKRr81/9UCoo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563771175; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=Fd6N1GFes+7DTUa1+1iHQgT2V86ETqps0CrqFRci/pA=; b=FCf2ZK2JS3A06e/bBaj38u3RyGbDz9SvpqHsGa5YCdM/da8tXx/a/CIN8LJOvfoy3b7TcZqJIhQaouPl34Rc6y8VOeS17ARg60s9Oc1NZD2AvNRx3ysAdB6L/xQrI+ijc6DCMAFynzCrGdaQtMdqDH1i1dt20dGcZ2LM6GNRvEc= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+44090+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 156377117525898.50329134692879; Sun, 21 Jul 2019 21:52:55 -0700 (PDT) Return-Path: X-Received: from mga04.intel.com (mga04.intel.com []) by groups.io with SMTP; Sun, 21 Jul 2019 21:52:54 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-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:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,293,1559545200"; d="scan'208";a="188527056" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by fmsmga001.fm.intel.com with ESMTP; 21 Jul 2019 21:52:52 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Bret Barkelew , Jian J Wang , Hao A Wu , Ray Ni , Star Zeng , Liming gao , Sean Brogan , Michael Turner Subject: [edk2-devel] [PATCH 3/5] MdeModulePkg/SecurityLockAuditLibNull: Add null version lib Date: Mon, 22 Jul 2019 12:02:02 +0800 Message-Id: <20190722040204.33108-4-zhichao.gao@intel.com> In-Reply-To: <20190722040204.33108-1-zhichao.gao@intel.com> References: <20190722040204.33108-1-zhichao.gao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhichao.gao@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1563771174; bh=17Vic4qhJGX8HZMHpUFqIPevt07eg7D+oYTZ1OODa5I=; h=Cc:Date:From:Reply-To:Subject:To; b=eUAOv0F5zqjDpLE4WRqDO7hxYmmezESqSw6odYfEa5isQT0dgEgOIDEina+PDSwdNRO wx5d8hd+AZdejr1uEao0dmL0WEPNC5uY5mg4H2bPPD0vq6+kwIDbgEOfDuWp5qbYNidpo Z6Y11YH2Kaq2NkfV2irV0iDBAJ2x1nHeB7c= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Bret Barkelew REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2006 Add a null version library instance of SecurityLockAuditLib. It provides the new API SecurityLockReportEvent without any function. 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 Signed-off-by: Zhichao Gao --- .../SecurityLockAuditLibNull.c | 32 +++++++++++++++++++ .../SecurityLockAuditLibNull.inf | 27 ++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 MdeModulePkg/Library/SecurityLockAuditLibNull/SecurityL= ockAuditLibNull.c create mode 100644 MdeModulePkg/Library/SecurityLockAuditLibNull/SecurityL= ockAuditLibNull.inf diff --git a/MdeModulePkg/Library/SecurityLockAuditLibNull/SecurityLockAudi= tLibNull.c b/MdeModulePkg/Library/SecurityLockAuditLibNull/SecurityLockAudi= tLibNull.c new file mode 100644 index 0000000000..47a26684d3 --- /dev/null +++ b/MdeModulePkg/Library/SecurityLockAuditLibNull/SecurityLockAuditLibNul= l.c @@ -0,0 +1,32 @@ +/** @file + + Null library for security lock logging that does nothing but meet compil= e requirements + + Copyright (c) 2018, Microsoft Corporation + + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include +#include + +/** + Null function for security Lock event logging and reporting + + @param[in] Module GUID of calling module + @param[in] Function Name of calling function + @param[in] LockEventText Event text explaining what is locked + @param[in] LockType Enumerated lock type for differentia= tion + +**/ +VOID +EFIAPI +SecurityLockReportEvent ( + IN GUID *Module, + IN CONST CHAR8 *Function, + IN CONST CHAR8 *LockEventText, + IN LOCK_TYPE LockType + ) +{ +} diff --git a/MdeModulePkg/Library/SecurityLockAuditLibNull/SecurityLockAudi= tLibNull.inf b/MdeModulePkg/Library/SecurityLockAuditLibNull/SecurityLockAu= ditLibNull.inf new file mode 100644 index 0000000000..bf3f9fc0b0 --- /dev/null +++ b/MdeModulePkg/Library/SecurityLockAuditLibNull/SecurityLockAuditLibNul= l.inf @@ -0,0 +1,27 @@ +## @file +# +# Null library for security lock logging that does nothing but meet compi= le requirements +# +# +# Copyright (c) 2018, Microsoft Corporation +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +## + +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D SecurityLockAuditLibNull + FILE_GUID =3D 1d333a6a-90a7-45cb-9897-0a172ee35066 + MODULE_TYPE =3D BASE + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D SecurityLockAuditLib + +[Sources.common] + SecurityLockAuditLibNull.c + +[Packages] + MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec + +[LibraryClasses] + BaseLib --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#44090): https://edk2.groups.io/g/devel/message/44090 Mute This Topic: https://groups.io/mt/32555408/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-