From patchwork Wed Jan 16 21:22:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 155770 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1152711jaa; Wed, 16 Jan 2019 13:22:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN51/ay85n12BkPgU0dMkR1PBu1xUopUL5envDaKtDITVmOMDovAzePxThEWDsgFLT6zdwoX X-Received: by 2002:a17:902:bb86:: with SMTP id m6mr12081289pls.315.1547673751757; Wed, 16 Jan 2019 13:22:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547673751; cv=none; d=google.com; s=arc-20160816; b=NxSbzkwsdCKrlZexbn5z13iq9dneu1lU9VQsDbOaM1c+Xx8LT5MIPCawgKQ6GVZtUw MHqtorGEwrS+82G29La2UhfN1SYYxsdfvck2jvleI6BAqHhste8OqnXdXTTcYyN49H55 iTFCV3E4rPruOtZIjp6xmh6xemRdO3BVouRXItN0nMX8j33UQyDwdSAcwvRHjIEgjMJA 0tLOoAk1Ww9cAc68Dpj/9Xr/vy3WHMbLix1gXGAa5GlatTHVErH0Frmt6Sv2oxnvRW1t wzI7Kk/W9+lAQ8kQpJXAXhYsGiC9rE9n++P+AaOaSpBEP7VFbHIk17ZdbBw7Y0v+jdyp d7Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=CH2+r7DMU031TgpQvLwJAla5AkzpVDU/KemyfQMPS30=; b=B6EVTEK5g4xDldYFX70swB3sw+SSEoS7ZSrmsoz+KKkBqv4oxkxmMYXlgk3AkjY0f3 RjsqasxukfPM2BCCs4EyejwRFmyWr/9pwu7y+8AkUj7zdU4L220jwmjbIZN8nSyel6II MsZqraXXJoISdnD791J93/o01Jo/9F1jWaJSc/yPil1f0Oxde/Fk54cBdsX1UYKFGwoI X843igbI1qCDv6UTj93q+uUdT7dm0S9J4UQ+fBwza20C9n6qlVvZyTyYzf4B0Y+bXPgR T4XEHfbHcOC2fCCffbnESr7NedBDysaE7phu+AaDdIkcfT3Z7WAtfq+oJK0CBcfpSaaO m89A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VxkjTNIv; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id a90si7318515plc.314.2019.01.16.13.22.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 13:22:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VxkjTNIv; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 64E56211B81A5; Wed, 16 Jan 2019 13:22:31 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::343; helo=mail-wm1-x343.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 82FCB211B818D for ; Wed, 16 Jan 2019 13:22:29 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id a62so3606482wmh.4 for ; Wed, 16 Jan 2019 13:22:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UHB4Rm4owgNCTD2PuF0JoK8qz+CSzR2oell4jIKOyCI=; b=VxkjTNIvSNykYL6nBACvdf7wrlloB9vUGjDYKQ88YwTBSdqVNVTSuJhGOY/2Ex/CyG d+QQvx61xRtbIvs7nsMEusNil7wRhzryoRO5jFOzQBp4f0E5Q0Xmjtl/Tvxl6+dy6Qy9 X0PT8wB+84mwuF+8Hrh+j4G0umy61CyENXYTA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UHB4Rm4owgNCTD2PuF0JoK8qz+CSzR2oell4jIKOyCI=; b=H/f86fNKLUeuj88mKfbvAUihwu+UiKNw0O0BS8aVk2w7krERgv1XR+RQdjl86T5sUe rOA/E45vi5kYtmZ0ZemvHs6Jh+2LNqb9Wmb0PJGvAizt5Bw0OvTSk85cpCVaTtcVoScm bokSTVtlsvyVtZ21h3ZJZ32uoCmjSdSGkKsKCyfuiv3CfJP0E+67jWDw45gn4Zz074S9 Kx3BYyf8gOQHzJU0lq+rbgLqs0tNzrUHxuo+982Fj2xp+9yhlmlFf8OkXUdwiEDreflW ZKdM/xwkjWdQlMggma1ynb6vvFiEIpAaUGlRIcatDXmmW+tMZQuOLKo4Kd9YyqC6yCFc /lSQ== X-Gm-Message-State: AJcUuke/QcrAz2gf/iIZCoLSx1VAsZi2eHR06snNty6XrW9BBhMJT87G VAcIzi4utZoAbGfbPKY0Sc5a0bLDffzZvw== X-Received: by 2002:a1c:410b:: with SMTP id o11mr9194613wma.109.1547673747775; Wed, 16 Jan 2019 13:22:27 -0800 (PST) Received: from dogfood.home ([2a01:cb1d:112:6f00:28df:207d:542c:1451]) by smtp.gmail.com with ESMTPSA id l14sm162789095wrp.55.2019.01.16.13.22.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 13:22:26 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 16 Jan 2019 22:22:18 +0100 Message-Id: <20190116212221.7460-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190116212221.7460-1-ard.biesheuvel@linaro.org> References: <20190116212221.7460-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 1/4] CryptoPkg/SmmCryptLib: permit use by MM_STANDALONE modules X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ting Ye , Liming Gao , Hao Wu , Jiewen Yao , Star Zeng , Michael D Kinney , Chao Zhang MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Permit SmmCryptLib to be used by MM_STANDALONE modules Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Jian J Wang diff --git a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf index c34699cd62bf..a681fe2f36b8 100644 --- a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf +++ b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf @@ -30,7 +30,7 @@ [Defines] MODULE_TYPE = DXE_SMM_DRIVER VERSION_STRING = 1.0 PI_SPECIFICATION_VERSION = 0x0001000A - LIBRARY_CLASS = BaseCryptLib|DXE_SMM_DRIVER SMM_CORE + LIBRARY_CLASS = BaseCryptLib|DXE_SMM_DRIVER SMM_CORE MM_STANDALONE # # The following information is for reference only and not required by the build tools. From patchwork Wed Jan 16 21:22:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 155771 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1152746jaa; Wed, 16 Jan 2019 13:22:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN7PciS0dIn5PiT56FHNGuxIJhcuWq9N8dSNoXqBPk3lERKfFj7TirEEsLjEMNIf9llVW5Qp X-Received: by 2002:a63:374e:: with SMTP id g14mr10991822pgn.59.1547673753995; Wed, 16 Jan 2019 13:22:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547673753; cv=none; d=google.com; s=arc-20160816; b=daaLM3RQ36IY3DLekTu1ylyTg0lispZZRWrpRrEVcSwRviDr5NFKlX8quzzjGLN7qq TTdXtpIIpc2z/ZhCFirRuG66Gnaj1okB5MrdHhEHmkjTUfiHn8AJdz0ugJLbS5iiC5I9 okO36xmE2m8BgjwilcghekfdXHE80o56WtHIA1TAUVIwP9j9zmoEFQjZjW5tNQx6sjEY RleNRTZjvr4UCGvduBwSGyVN3q6II757RS5VbQiPI6PF5jmzuvwBmCgBXS13uevRTtdj AkW4a/ACtztnttb/Zcc/7o90nxle6K/zcGPEHw4cZ5JtcWJbN9/Uo0rrCp6b3mST7UmJ cxrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=iVIcoS8YJwj0mVv6Z7RxLo/beGYN9FeFFx3jlV/jAb0=; b=RAtx6Q58/HMnRCHnJ+I0vy129n+0+qGd5eS/lxRsg3LG6jEHNi74JKVGJ7KLySq4rY bIiSUWcnviU9/VEb173bWYapDaZPFDSP8U8tH01vroOPk/AT+0G1uQMASZNK6RbYfOJ1 3suFyh57nvi6eZXe3FDu4ky7ilDfz5FudCyCpd8xjNB09C/H/Weme3YXV0flNR7htXbF pNlst3dVjjq1bFX/aPfkiqHzY4RCrU3RX/cEjkp0yzFid23DcagX321wMSiEUoD/N03m owO2RWMlYV3XZn/+mXuunBP5pYvzq8/vZJXogQpAQiQ9ImUlP6LlIBq1S7s1DeBreKWV Mfpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QS0GiAli; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id d4si348985plj.334.2019.01.16.13.22.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 13:22:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QS0GiAli; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 96311211B81A8; Wed, 16 Jan 2019 13:22:32 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::341; helo=mail-wm1-x341.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 15789211B81A2 for ; Wed, 16 Jan 2019 13:22:31 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id f188so3575938wmf.5 for ; Wed, 16 Jan 2019 13:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=G7N5j6m5QWjSCvmOT+nhf+0fvV9t4sCwCr0ar+pxWxc=; b=QS0GiAli/A5uuKlsA+y2ElNEbk68IeWFxNhQD+80syONFZ4OuQEO66pdzTR20cr2iw oR9btvuXkGl34evuF0LiI6GuDluoe7o6ztNU05QcVyj4+w2mK5V7XSRX4mjzacPW9DOm DET87iMSy4oU/v4T8gGfH/6FoPagX2Jbjvr0Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=G7N5j6m5QWjSCvmOT+nhf+0fvV9t4sCwCr0ar+pxWxc=; b=UKFkw2gPko9+zIaKehqKT77beP9k7wpDd1qTIysXoteTS/6oTr+es+Z+KshchAHXLx lJ6inbKuhmQNfhz4Fwn8PtJM5ZbPY214/mx6FFTJKvAAf7Ry0iuImWp+xBx7YkNwh9ls 3svrwwzs7UHhqCF1VsAL8rIr782qDG6+0mUYISKJ/mHFD0RmluohuvPKZODmJI41S1oY qpIZUSZdSnp2T0jzGOOs6MaifHQ1IxFeZnvO8PDxHyk7DsEtC0LDpeh2krJKzzelWnWi TzGOltb+LhWnIWF6wsaA/1YDJTAY3fhxM6jWXIxIv1Hx4KeKbsxBFMFESk0/QxIxP1GF R4lA== X-Gm-Message-State: AJcUukfmU49xSB0wqVL3MgCUE8yqkkprdAzy5FYyq7Eg05AR1Nm8ubIQ 0ZMuRHEhkEAbWxxHGzLg9pU2OgbbvhK4Fg== X-Received: by 2002:a1c:1d81:: with SMTP id d123mr8871093wmd.112.1547673749249; Wed, 16 Jan 2019 13:22:29 -0800 (PST) Received: from dogfood.home ([2a01:cb1d:112:6f00:28df:207d:542c:1451]) by smtp.gmail.com with ESMTPSA id l14sm162789095wrp.55.2019.01.16.13.22.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 13:22:28 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 16 Jan 2019 22:22:19 +0100 Message-Id: <20190116212221.7460-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190116212221.7460-1-ard.biesheuvel@linaro.org> References: <20190116212221.7460-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 2/4] SecurityPkg/PlatformSecureLibNull: permit use by MM_STANDALONE modules X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ting Ye , Liming Gao , Hao Wu , Jiewen Yao , Star Zeng , Michael D Kinney , Chao Zhang MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Add MM_STANDALONE to the list of module types that are permitted to link to this library. Also, since the constructor prototype is different between MM_STANDALONE and DXE_DRIVER type libraries, convert the library into BASE type. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.c | 9 +++++---- SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Jian J Wang Reviewed-by: Jiewen.yao@intel.com diff --git a/SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.c b/SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.c index 0c6ded22f3e6..b2493a029393 100644 --- a/SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.c +++ b/SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.c @@ -15,6 +15,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ +#include + BOOLEAN mUserPhysicalPresence = FALSE; /** @@ -53,15 +55,14 @@ UserPhysicalPresent ( @retval EFI_SUCCESS PcdUserPhysicalPresence is got successfully. **/ -EFI_STATUS +RETURN_STATUS EFIAPI PlatformSecureLibNullConstructor ( - IN EFI_HANDLE ImageHandle, - IN EFI_SYSTEM_TABLE *SystemTable + VOID ) { mUserPhysicalPresence = PcdGetBool(PcdUserPhysicalPresence); - return EFI_SUCCESS; + return RETURN_SUCCESS; } diff --git a/SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf b/SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf index 979a33705de0..70051a27a0a9 100644 --- a/SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf +++ b/SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf @@ -21,9 +21,9 @@ [Defines] BASE_NAME = PlatformSecureLibNull MODULE_UNI_FILE = PlatformSecureLibNull.uni FILE_GUID = 7FA68D82-10A4-4e71-9524-D3D9500D3CDF - MODULE_TYPE = DXE_DRIVER + MODULE_TYPE = BASE VERSION_STRING = 1.0 - LIBRARY_CLASS = PlatformSecureLib|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_DRIVER + LIBRARY_CLASS = PlatformSecureLib|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_DRIVER MM_STANDALONE CONSTRUCTOR = PlatformSecureLibNullConstructor # From patchwork Wed Jan 16 21:22:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 155772 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1152800jaa; Wed, 16 Jan 2019 13:22:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN48cYJ4y2VnhQgFLTsNrkxYChr0a+/3ul8OFcr+DW+KSZjyf1H+50EWtw8wY4bAwLEOdRyH X-Received: by 2002:a62:5f07:: with SMTP id t7mr11889992pfb.108.1547673757124; Wed, 16 Jan 2019 13:22:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547673757; cv=none; d=google.com; s=arc-20160816; b=B7Y6zfkQ+Gq8mqzo6mVQ6vUTflf3cCE2dI7u750Uhk93gB5+aPgMthzsZs1e7SL8rT qA9EUcbZFJRo7tW+X4IFYg4yeolvz/fJVsb/sNbM+nU+fkP8x6Q27TKCSJTUXP+Bjx8a HJkAC1H8/ygsSL85QUYXT8RmCw232Gqi6GlZDXOXL0IiEKfB7SFcZiKodwSpqpze3uAf mEAFjgX8ZS+GflYN4bTlOdgNKe3OBpusDWm0Xv99AJmfZ1fXlRcnRUBdS5akR6F6EZIp KOGbkiE0uzfOpmTO5DQLs3vol9CUjuGOay15f7l6TpfE/dyy5+WywNXJVt56+/jRQ8wo 18rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=4JLNdYArQzk2AeGP2gYCAlRRaBWllanXRyPgT4En1rA=; b=Lfc4Ces3YNQ5+efhld4xtf2kilJhNqBRfTkQDjtBlbqLsMgAxtma9HJUVICzQV67Ye 8cmL/E209sHzyKS/JLX9OaA4hjvV8mO2Jk/30FBTviQzfjil3aqWZAMrHbQmWkcw4PvM 8cqlMMEVdNwjXd7FE1cVPVZMR9CtmTuNC3LK4P7oOjg2lrox8UZxgoKf8gwR48zlsfH0 ySq77g38l+4asXgfT3pKKJJs4lKiIULWsJQe/hQDKLHL3YHoV0jYLMKmT8ptq4Iir3tJ uS4kSH4vtCZTheybitrA2lgkxBLwTKrs7lZ5GoOpRfsLr4JckpK/sbTT3Y1snMQoFjnA 8a5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NpVTf4YA; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id g59si3754225plb.302.2019.01.16.13.22.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 13:22:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NpVTf4YA; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D127A211B81AC; Wed, 16 Jan 2019 13:22:33 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::343; helo=mail-wm1-x343.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5DDC7211B81A7 for ; Wed, 16 Jan 2019 13:22:32 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id f188so3575991wmf.5 for ; Wed, 16 Jan 2019 13:22:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0R72tN1VSaB3kI7K5vSfequ++HPRsGDdRzl6rEtlYtE=; b=NpVTf4YAJ6xweJx2h6ipgln8setAGmG5nMHf8w9gvOvIIWS5UcnFcKWMYo2uKshxva QYy+yAQwCVq1VlHMIu/Kh886C9Foi/d+RM/Ix/ZRh00uXdJ5TiJVEr8aCc1fNs6WWDpm VxiMJ+KdM7kgvxXYtlbfiFTMr9LfeJj80fNww= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0R72tN1VSaB3kI7K5vSfequ++HPRsGDdRzl6rEtlYtE=; b=nmzu3NapeJo9drNo5X8A3prglH7ipWPJ4Mu8NuZ1Jx4eb+5TjYYdi4l9P0YNV+2jBT LT7QBnNYOShYRf+y+TgwQV3KU7q5X+0AHC9w62wfiKzu5DgjxokdBSbXUzC/N/im0vSV Bu+hFSrGb7Sm1kfoHlJziZfscPWh8ShQeZwnyDlgdQRQKsI7RR3B2uqTCjvL9BP1fkLV kkNF+bNY9BZxA7mPCoTaPKiyHhrkAB7F4/akJ6r5Vy6ixyktLZw0RPBcC3ll47MAsKXf uNPvTlhMFHmPQxRJz++YeNo0E81Y3cfIzkawyPloeIdMMz8GWUzBrc1LYXs18bSeQiHy KGTw== X-Gm-Message-State: AJcUukcuLN6GKHCHPX7hvh6gMffl+LrdhsVpeBivHjv1px0CGe/o8iIK 1tXEY7CXB9bM4tCT8T5nPG9tkq98sozp0g== X-Received: by 2002:a1c:4d12:: with SMTP id o18mr9421128wmh.92.1547673750663; Wed, 16 Jan 2019 13:22:30 -0800 (PST) Received: from dogfood.home ([2a01:cb1d:112:6f00:28df:207d:542c:1451]) by smtp.gmail.com with ESMTPSA id l14sm162789095wrp.55.2019.01.16.13.22.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 13:22:29 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 16 Jan 2019 22:22:20 +0100 Message-Id: <20190116212221.7460-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190116212221.7460-1-ard.biesheuvel@linaro.org> References: <20190116212221.7460-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 3/4] MdeModulePkg/VarCheckLib: permit use by MM_STANDALONE modules X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ting Ye , Liming Gao , Hao Wu , Jiewen Yao , Star Zeng , Michael D Kinney , Chao Zhang MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Permit VarCheckLib and VarCheckUefiLib to be used by MM_STANDALONE modules. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf | 4 ++-- MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Jian J Wang Signed-off-by: Ard Biesheuvel Signed-off-by: Ard Biesheuvel diff --git a/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf b/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf index 128c44d695e1..8873fd51a02a 100644 --- a/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf +++ b/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf @@ -19,9 +19,9 @@ [Defines] BASE_NAME = VarCheckUefiLib MODULE_UNI_FILE = VarCheckUefiLib.uni FILE_GUID = AC24A4C7-F845-4665-90E5-6431D6E28DC0 - MODULE_TYPE = DXE_RUNTIME_DRIVER + MODULE_TYPE = BASE VERSION_STRING = 1.0 - LIBRARY_CLASS = NULL|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER + LIBRARY_CLASS = NULL|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER MM_STANDALONE CONSTRUCTOR = VarCheckUefiLibNullClassConstructor # diff --git a/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c b/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c index 80dc6341adcf..5e419831e8cc 100644 --- a/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c +++ b/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c @@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ +#include + #include #include #include @@ -927,15 +929,14 @@ VariablePropertySetUefiDefined ( @retval EFI_SUCCESS The constructor executed correctly. **/ -EFI_STATUS +RETURN_STATUS EFIAPI VarCheckUefiLibNullClassConstructor ( - IN EFI_HANDLE ImageHandle, - IN EFI_SYSTEM_TABLE *SystemTable + VOID ) { VariablePropertySetUefiDefined (); VarCheckLibRegisterSetVariableCheckHandler (SetVariableCheckHandlerUefiDefined); - return EFI_SUCCESS; + return RETURN_SUCCESS; } From patchwork Wed Jan 16 21:22:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 155773 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1152855jaa; Wed, 16 Jan 2019 13:22:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN6cf6HOM1Y1F5lIM1VYHLse5krW8e6YpjfEd2xf2PAoqE6PfgDEvbwLg1YYWHtNfkgT5mp9 X-Received: by 2002:a17:902:28e6:: with SMTP id f93mr11879085plb.239.1547673760032; Wed, 16 Jan 2019 13:22:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547673760; cv=none; d=google.com; s=arc-20160816; b=Gf2eFWq/5V1Tz1kF3DlXIRG76+//rdFewZKLdRNFG6AfkcyycuIoSPm72dv2YAEbCy 4hjB5QhRNY82szIRFRVpfPbRxsPIeOL68yVwSXYyrtXNv+2N9oXOBcHDU6z87brOYuLH sxHrtO3BUBvZS0Snuj66t11FwDxDSkKJuKsp2XAcZVOXT2SRNuzTD23wivh9dqmT6fAc z5Im6nBJtYkhDWBncj2V7bgSzgmkk3ZPHgQ5PYBkCUFe8nai4S1AgLXUx69BG34/17Fl BbeSHtMFqnkWtQydllUiVUIjJDiVbC8G/q10ePXy/gz96TJA9FP8qIsdkHv0SC/HgJBb VJvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=nj8h6T1OhL5hfIuFo9Y2MPVPxmr33K8cWE6eufvAKkQ=; b=M+rEldPyYuL6yWIaD4GDS+JZcOgtTobHgRkWraQ+RGQ1+YlOwLt7hhNTIM4KViewbo IzLg298U/c589HmHERFi+xGd9tSiEsecJ/6JW9xJl8gkG1j9wJuVEVic+01f7PZ54yMN Kp12quY/bfRxlUm2YYwdCzUDFA1Lr3EcSPepOE5vsWGaL43Yju/KgPZJ07dS/s82KNO9 QWbt57j9o5oWltdlnZRjPed+owoSmOjK/U1p5loHh88nwQ1CZ4+fTll/96RBJliD83Vg 8xDUci/AkgzKmfF1YoPYahB62pUWxe8c5g9yeRjzOBcQSTVnJYfbKQw2sHmQUL9mPUf0 33KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SlyTRhPt; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id h5si5920574pgk.249.2019.01.16.13.22.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 13:22:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SlyTRhPt; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 0ED0D211B81A7; Wed, 16 Jan 2019 13:22:35 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::343; helo=mail-wm1-x343.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BDC5D211B81A7 for ; Wed, 16 Jan 2019 13:22:33 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id y185so2028365wmd.1 for ; Wed, 16 Jan 2019 13:22:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=di+tpfiyANUoKEz6XJ9h7dofYAlXTYAdC7vSSavX320=; b=SlyTRhPtIiVtvZYrBW4VqcWMd7BPBazcKW5sR0KVCuSWUbTMT9z6ZjfGqZpBCZNT4G 1C4g3KG4sGKhHpJycfg/Pvo0Wh2Ox/ta92PztSjs93tsWnMuGWHyiaL0zuFumds96K3x 5CTRjlWi1BihRtBcq/rVY5qzA1Q5trSTCh1lY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=di+tpfiyANUoKEz6XJ9h7dofYAlXTYAdC7vSSavX320=; b=a9ReRz90j0hZ7tPEbacaKdEVGO6RwsZoLFLyHSJxxT+DsiWwfj3HyWZAAsizdfLxJw ToBq7AlsmTRJqVn/FrXt3z/wMoPlJJopNksAviWPBI8MG3WMuurHbuoaQi6b5IzRD1UO eC5TdE9FDo+t0xaCCrWC0O5B6B+rAZCS4tA2tugsc8Z4vzdMnndBF8pLWwR2XOd0iI09 GR3uqtynDkGErg5DNRwwljb1vB1kONayEI9GMW3u143vx2O5hTQozVW0+XOqNCC2Rar4 osod5N0Rm3nggg90ORVcb3TW74hiKJIfArpkSQq1zQrmioaCILJ1XKjp9uR75rYPUfNe b8iQ== X-Gm-Message-State: AJcUukfqVgj5gJPdvLYDWu7ORfhmsDihRHd3PDjmhLku6p2WZ9iH6QJg Gb8YLwTbSj0gLONz7/IZa7qgoQSbB2rxlA== X-Received: by 2002:a1c:a9d4:: with SMTP id s203mr8775713wme.132.1547673752052; Wed, 16 Jan 2019 13:22:32 -0800 (PST) Received: from dogfood.home ([2a01:cb1d:112:6f00:28df:207d:542c:1451]) by smtp.gmail.com with ESMTPSA id l14sm162789095wrp.55.2019.01.16.13.22.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 13:22:31 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 16 Jan 2019 22:22:21 +0100 Message-Id: <20190116212221.7460-5-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190116212221.7460-1-ard.biesheuvel@linaro.org> References: <20190116212221.7460-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 4/4] MdePkg/UefiDevicePathLib: permit use by MM_STANDALONE modules X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ting Ye , Liming Gao , Hao Wu , Jiewen Yao , Star Zeng , Michael D Kinney , Chao Zhang MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Add MM_STANDALONE to the list of module types that are permitted to link to this library. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Liming Gao diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf index d5f7bfa6af39..89ee87e15d0e 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf @@ -22,7 +22,7 @@ [Defines] FILE_GUID = 91c1677a-e57f-4191-8b8e-eb7711a716e0 MODULE_TYPE = UEFI_DRIVER VERSION_STRING = 1.0 - LIBRARY_CLASS = DevicePathLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER SMM_CORE + LIBRARY_CLASS = DevicePathLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER SMM_CORE MM_STANDALONE #