From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id DF86C7803CC for ; Mon, 18 Nov 2024 19:27:16 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=YTZ/woGToZHeF9W1xBhOA53kKBXhbHdnySJgKwLMNWM=; c=relaxed/simple; d=groups.io; h=Received-SPF:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:Authentication-Results-Original:nodisclaimer:MIME-Version:Original-Authentication-Results:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240830; t=1731958036; v=1; x=1732217235; b=mR/LyknkI15yZ8P67t8COeBWDw52nWIxvDVkZ8wDJWmhckK7KRgCKJsa/b+3euX8kbtqZac2 t99l/c9BozXhek8IA6Mhy6/WuJop+uL4DyJuANSUy2C7JpJU+38XC6NGb8CfLlkZyxujfSZ5p17 F5wJoD0if4jgUZ3TYTQ69gXD4bt9lKCIkKUfwvNx+Ol1LsOi9Ae3p8ttamJDL3J/Xf7Z71X6AHh Jbe5P3NXqyDlFVuDNCyCy7e6vH/sYIGcgYTWIUoreLUCMpEd4L6sY81oLfcLNRkOZRsrinoDZ7h 0u1f090VXrFEe/39mlntTOrxmPBv58wZeNK0jNpZirY0Q== X-Received: by 127.0.0.2 with SMTP id 4ZFCYY7687511xSEpTUGYTkq; Mon, 18 Nov 2024 11:27:15 -0800 X-Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.40]) by mx.groups.io with SMTP id smtpd.web11.21704.1731680340789049784 for ; Fri, 15 Nov 2024 06:19:01 -0800 X-Received: from AS4P190CA0045.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5d1::16) by DBBPR08MB10698.eurprd08.prod.outlook.com (2603:10a6:10:534::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.18; Fri, 15 Nov 2024 14:18:56 +0000 X-Received: from AM4PEPF00025F98.EURPRD83.prod.outlook.com (2603:10a6:20b:5d1:cafe::6e) by AS4P190CA0045.outlook.office365.com (2603:10a6:20b:5d1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.18 via Frontend Transport; Fri, 15 Nov 2024 14:18:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM4PEPF00025F98.mail.protection.outlook.com (10.167.16.7) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8182.1 via Frontend Transport; Fri, 15 Nov 2024 14:18:55 +0000 X-Received: ("Tessian outbound 99d3b165dfe9:v490"); Fri, 15 Nov 2024 14:18:55 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 71eeae85c43abbde X-TessianGatewayMetadata: FtEy3eBFkSo976JHK4bf2v0dPyV5IXG6a/G54PwDyNwNQyoZODcCxWCcCxojjGRi7E/uCIRL9oICSuxrFLch6eOYNO04jTx2PvPrQryNllFAN/ssq2V1G+Om+pb6OKgHXEM/F7v4DY0hENp0ucMS7pQnfywAlV8LKRGDMmWW7rk= X-CR-MTA-TID: 64aa7808 X-Received: from Ldec9f5b5faaf.4 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 05F7463E-93EE-4521-AA75-23060D09F6A2.1; Fri, 15 Nov 2024 14:18:44 +0000 X-Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id Ldec9f5b5faaf.4 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 15 Nov 2024 14:18:44 +0000 X-Received: from DB4PR08MB9310.eurprd08.prod.outlook.com (2603:10a6:10:3f6::22) by AS8PR08MB9193.eurprd08.prod.outlook.com (2603:10a6:20b:57d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.17; Fri, 15 Nov 2024 14:18:41 +0000 X-Received: from DB4PR08MB9310.eurprd08.prod.outlook.com ([fe80::c69c:9a4c:8c1d:4a9a]) by DB4PR08MB9310.eurprd08.prod.outlook.com ([fe80::c69c:9a4c:8c1d:4a9a%4]) with mapi id 15.20.8158.017; Fri, 15 Nov 2024 14:18:41 +0000 From: "Ann Cheng via groups.io" To: "devel@edk2.groups.io" CC: G Edhaya Chandran , Barton Gao , Carolyn Gjertsen Subject: [edk2-devel] [PATCH v1 1/1] uefi-sct/SctPkg: ExtractConfig allows EFI_ACCESS_DENIED with a warning Thread-Topic: [PATCH v1 1/1] uefi-sct/SctPkg: ExtractConfig allows EFI_ACCESS_DENIED with a warning Thread-Index: AQHbN2lFBw6J3Clgi0OEZUly8owxgQ== Date: Fri, 15 Nov 2024 14:18:40 +0000 Message-ID: <20241115141833.1117221-2-ann.cheng@arm.com> References: <20241115141833.1117221-1-ann.cheng@arm.com> In-Reply-To: <20241115141833.1117221-1-ann.cheng@arm.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: DB4PR08MB9310:EE_|AS8PR08MB9193:EE_|AM4PEPF00025F98:EE_|DBBPR08MB10698:EE_ X-MS-Office365-Filtering-Correlation-Id: f80b94f9-5706-458d-9a5b-08dd0580708c x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|376014|366016|1800799024|38070700018; X-Microsoft-Antispam-Message-Info-Original: =?iso-8859-1?Q?/7pqXN4DhcwmP94+7PYy/xCP73VqpWMoM/Bk2TEU1/h4A/EaEaGwhYMWC9?= =?iso-8859-1?Q?st+3GGE2ogjYLD7iY7aUtfbHn/+3Yu4IJo90+iXwi3E4zIAKuksmWLCYcf?= =?iso-8859-1?Q?taR7XqK3OFVYTQzqb2WZyKLe7SdgKAyhHBMnweGSSy5lP23MHmSUlyF6GR?= =?iso-8859-1?Q?5WMCl8y+PW/TxkFfMGroir5apmnII3v+XxkhItFkgrSv6VQcmBw9DVGB9c?= =?iso-8859-1?Q?6ZXwFL2nApwwOI3OKLlYBU6XmSFYoydYxLKgOsAQ7XiJktvAK4ZcihUDGI?= =?iso-8859-1?Q?WNelPqzp/YrEsfu3Fq0WTZVPKk1Cj10m3iF8HraC21jq2feCGf8Dd/44fe?= =?iso-8859-1?Q?quhAsPjBENhPUQIROe4aRq3Xe7Lz/vyq9+ycLS5IeJkeu1LYSmgRNPnO4i?= =?iso-8859-1?Q?Em3YFf10pgmv7deby+enoWvv9CT9zFqwF7mzhqUOPBP47lu6k/Bawg1XXi?= =?iso-8859-1?Q?ckj8JKmTFVwe+dG0DRwRD/2RAgwexwmhbU7tmx/U5f2V5y7muFt3sXVKr5?= =?iso-8859-1?Q?NCgtxVDwHa6o95wPioGzIrTgN2uQntPZTSE5h/6xuI+cGm6nBHJ4GWA/Uk?= =?iso-8859-1?Q?0zCP87luM7PZ6Rehm+WKH8bctyoEIm+2TRshSoWgbDLFQLVjh0bqX5so/N?= =?iso-8859-1?Q?NuLjI97coH5hfeftSBgb8DtfbD4l5Ahc4PaWDmwrz6W4szcwtzH/ibfh8y?= =?iso-8859-1?Q?07+rxzdt+BgRBQ5r886ovsN9XPeifCcn0z8wzLrbF0oG6gfRCjiKso87je?= =?iso-8859-1?Q?+AJFX4Oo5O3kzcZ22foXovk/XJBxpdftAVE5gnczPki+FiRoXbA/NnV5iD?= =?iso-8859-1?Q?CagLUwPU3L2lOJzaT/5C/5pRII5yqaAW7XPJaLxh0QjD9UgxwZTbD6O4gw?= =?iso-8859-1?Q?3b0sciW+cuU7EsmPLR583BKHXjMn+WoB9eThPiaSVbKoqwK62D1OLfs9wB?= =?iso-8859-1?Q?0YH5g3x1oErf9ubrDJAsddAvj1dh+aObZXVzvnhkk6iaoBRZOpIer4J5PX?= =?iso-8859-1?Q?3t2YTKviLPP83VXXxlXsblMv4QG9UaxW0px+G7EqyvDnL+4Vc45/iaCFSx?= =?iso-8859-1?Q?uUN8LWY6y709ehjXLrh60QrGBfRtI/mAJIiVn4xWT3v7AdBONDBWJPVtE8?= =?iso-8859-1?Q?v23w32Mq0j0mginzEaZgY4KhgTDobFVuqP/MN74PYpmL0QqNwsAm5uwhwy?= =?iso-8859-1?Q?0F5LSJlToQvNNRu9KYAoSKRpu3aTYmt7ZO/czKAtlGYIFJ9qc7BmHEmK/y?= =?iso-8859-1?Q?CNQo03vJdrOicfrRkGYi8WRMr4Q2CFlJpX22rZHahTqCDLc3Ui9rw0rvCu?= =?iso-8859-1?Q?VH/KByxetTyadgIX2QJc+ha3WdA1+o7vkhHmRwuRGkZVcqHudUovltlmAV?= =?iso-8859-1?Q?5YSXDA0xM1?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB4PR08MB9310.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(1800799024)(38070700018);DIR:OUT;SFP:1101; MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9193 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:3f6::22];domain=DB4PR08MB9310.eurprd08.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM4PEPF00025F98.EURPRD83.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 9e4938c9-e5be-4b98-9534-08dd0580679b X-Microsoft-Antispam-Message-Info: =?iso-8859-1?Q?6YXma9YxZUzAjK24wnNfJhIx+IEJ3TsQhi4sLdIevM36qsxnyZdPOYwkjp?= =?iso-8859-1?Q?ACKtCTTiH2mFFJEZxje1wXSAOnw3CemjN0GklmxzJj98oFyYV+9sK7FMt8?= =?iso-8859-1?Q?y9CFYPKqA9xo2v0sLhaX6u3wZf5/Lh42op+OS79jk61ucOjpPPGmbAYCfU?= =?iso-8859-1?Q?245PQxUit9JSqYnYhsqIDwYXOKdtheE+x/aHyYemgso/YvF2UTic6eLhcB?= =?iso-8859-1?Q?iQSsgcfDnJS+J2sjniBGorTo8kLKdozrIGmJtyGHTq6/P9ycGXD+hqiJTf?= =?iso-8859-1?Q?C/aNsO9fx+jbK2zpJXow7yuO4sLO352E4nBD83us+Lv1r60ZVQICQFIh8V?= =?iso-8859-1?Q?AEwBRXAZLSTENkZz04uzWqMCybJa/6Bp+j0KMhkUH2WB+mcTSQTB2JGXSw?= =?iso-8859-1?Q?PjDNS0F/HO2RTCMWJxUJztoSpvYGpJiTXBW5PLosbXVAZDpdQtuL0xShgy?= =?iso-8859-1?Q?+i0tJ6L8dkqsMk4UATFdKiZc6RDzdp71WinzyVIC19ZxEPbA7zozn93QEa?= =?iso-8859-1?Q?tCS8kBfENHgwPhy8q8EReGFlhl8ZOwFYKW/+rYJ99BfzeJN4B8+Sv2k1aJ?= =?iso-8859-1?Q?umj7ZGp1MXQmfSfffkSIrH8YzbS9NLS1RptEd9e7Y3Q6DGVkdbzMrFZ22j?= =?iso-8859-1?Q?/ijivA7DiCR15ZT0+K4URnZGWCwQbIL3yiJilmekAdg2Zbb4pNViLvZJt/?= =?iso-8859-1?Q?KC5z9k18mcs1vOTaeGbSHfzNLm5kfxk0hAyvvuy/81PWFi+Gk6y4UHsGiq?= =?iso-8859-1?Q?+exu8S4ruspN29IMNHBIHN1xaan3Jr8+edd9E80Pa//8xyy4ER1SMRrX26?= =?iso-8859-1?Q?JGEXLsKgz52gAvzSZnk4b0fzmvqPfmUt0GJnJHWa+qFTsHcngQQZBE7iJu?= =?iso-8859-1?Q?moWr08VKsG9ow588ngvVs9AxzM5E8Ene3nBqS9qn2MrjDzjZiNquIH+n6k?= =?iso-8859-1?Q?hUfVRApBgE8QGVl1a80S/iJPxyPpNIu+zSCzax+BeuhuiYI7cX/02W4Gif?= =?iso-8859-1?Q?bSCkx/SRn7BgXkjw4mTfICMYX50Sm/r1QdKCkrKDf3jGKa1rmRVaHnKrV6?= =?iso-8859-1?Q?J5AWCWYw20NZec4bL3VWsSazU/ywnoLrBgWjZmHFB0skkiDoL0p1z39uwC?= =?iso-8859-1?Q?8arJt1ZKayEJJNr5HoS8AX7/zDyfsebRVIP5erej7r6UqgrlI9pT7Nnm8K?= =?iso-8859-1?Q?UafiwJM+uVxTrz9nuDax45VU7shRbymy/ow2Dg7sG0aAJl8WXs+lkI1scT?= =?iso-8859-1?Q?TQdDhBDpbhg9hHPsDwJynBGF6JAk13fseQV7rL0uTd3uB6j2t3w7/1/o6U?= =?iso-8859-1?Q?BHtHLEzpCkvcoa/ALsJOeAavVhuf0hLOeX+n0FBX/TRiSiOwnFFCuXPdIv?= =?iso-8859-1?Q?TPIyZpbPQ3WgakcG08BrFHqgFxfMfCOQ=3D=3D?= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2024 14:18:55.8225 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f80b94f9-5706-458d-9a5b-08dd0580708c X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM4PEPF00025F98.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB10698 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Mon, 18 Nov 2024 11:27:14 -0800 Resent-From: ann.cheng@arm.com Reply-To: devel@edk2.groups.io,ann.cheng@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: ByWeGCu2KokpJa37hbTu25L6x7686176AA= Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b="mR/Lyknk"; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4847 EFI_ACCESS_DENIED (The action violated a system policy) is an acceptable status for ExtractConfig in UEFI specification. SCT now marks the test case as a warning instead of failure, when EFI_ACCESS_DENIED is returned. Cc: G Edhaya Chandran Cc: Barton Gao Cc: Carolyn Gjertsen Signed-off-by: Ann Cheng --- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTest/HI= IConfigAccessBBTestFunction.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/Bla= ckBoxTest/HIIConfigAccessBBTestFunction.c b/uefi-sct/SctPkg/TestCase/UEFI/E= FI/Protocol/HIIConfigAccess/BlackBoxTest/HIIConfigAccessBBTestFunction.c index fedccb382f81..b1419bed36dc 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTe= st/HIIConfigAccessBBTestFunction.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTe= st/HIIConfigAccessBBTestFunction.c @@ -328,8 +328,8 @@ BBTestExtractConfigFunctionTestCheckpoint1 ( } else { gtBS->FreePool (Results); } - } else if (EFI_OUT_OF_RESOURCES =3D=3D Status) { - AssertionType =3D EFI_TEST_ASSERTION_WARNING; + } else if ( (EFI_OUT_OF_RESOURCES =3D=3D Status) || (EFI_ACCESS_DENIED = =3D=3D Status) ) { + AssertionType =3D EFI_TEST_ASSERTION_WARNING; }else { AssertionType =3D EFI_TEST_ASSERTION_FAILED; } @@ -385,7 +385,7 @@ BBTestExtractConfigFunctionTestCheckpoint1 ( } gtBS->FreePool (Results); } - } else if (EFI_OUT_OF_RESOURCES =3D=3D Status) { + } else if ( (EFI_OUT_OF_RESOURCES =3D=3D Status) || (EFI_ACCESS_DENIED = =3D=3D Status) ) { AssertionType =3D EFI_TEST_ASSERTION_WARNING; }else { AssertionType =3D EFI_TEST_ASSERTION_FAILED; @@ -445,7 +445,7 @@ BBTestExtractConfigFunctionTestCheckpoint2 ( &Results ); - if (EFI_OUT_OF_RESOURCES =3D=3D Status) { + if ( (EFI_OUT_OF_RESOURCES =3D=3D Status) || (EFI_ACCESS_DENIED =3D=3D S= tatus) ) { AssertionType =3D EFI_TEST_ASSERTION_WARNING; } else if ((EFI_NOT_FOUND =3D=3D Status) && (Progress =3D=3D NULL) && (R= esults =3D=3D NULL)) { AssertionType =3D EFI_TEST_ASSERTION_PASSED; -- 2.34.1 IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you. -=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 (#120790): https://edk2.groups.io/g/devel/message/120790 Mute This Topic: https://groups.io/mt/109648112/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-