From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=17.171.2.33; helo=mail-in23.apple.com; envelope-from=afish@apple.com; receiver=edk2-devel@lists.01.org Received: from mail-in23.apple.com (mail-out23.apple.com [17.171.2.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0A307210F201B for ; Tue, 3 Jul 2018 10:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1530637965; x=2394551565; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FuMbdjYC7TK09z0QFykuokQiokdBxy98A5fso8HxCeM=; b=jdhO2frwilxJUzdQRkfTeifFuYOgaN4Vh5XnHe15DdeLh2/5TbUQyV7AC0Gq0KXM VEArvy+/cn1l/zzx/kROtXojkSsgNDzjOVWO9/YNOn5HkzzFuu1Vs7rpZRoqPCu6 941V0RwNWzjHNKveV6ePXd5LsCsCMq5Sp+LQ7ZybWSsPSB2OA3DH8MmKqKYxXlar Cin5qNaX5hM6cUwwf3GIneNbIl5BuSnBZs5EqmQ7Y0iOqbht727xpJ/TwYdvcabj GtX3g9w6tlqpQG+4SIBL5cDdSqBacg/oMxh62Y4rg2p1GjF1dulWFe0YF8diVEDy dBqKph79xo14Z7syN0jzEg==; X-AuditID: 11ab0217-d0fff70000003e90-b5-5b3bae8caabc Received: from ma1-mtap-s01.corp.apple.com (ma1-mtap-s01.corp.apple.com [17.40.76.5]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail-in23.apple.com (Apple Secure Mail Relay) with SMTP id F1.19.16016.C8EAB3B5; Tue, 3 Jul 2018 10:12:45 -0700 (PDT) MIME-version: 1.0 Received: from ma1-mmpp-sz07.apple.com (ma1-mmpp-sz07.apple.com [17.171.128.149]) by ma1-mtap-s01.corp.apple.com (Oracle Communications Messaging Server 8.0.2.3.20180614 64bit (built Jun 14 2018)) with ESMTPS id <0PBA00BKEVT8GDG0@ma1-mtap-s01.corp.apple.com>; Tue, 03 Jul 2018 10:12:44 -0700 (PDT) Received: from process_viserion-daemon.ma1-mmpp-sz07.apple.com by ma1-mmpp-sz07.apple.com (Oracle Communications Messaging Server 8.0.2.3.20180614 64bit (built Jun 14 2018)) id <0PBA00J00TMYXY00@ma1-mmpp-sz07.apple.com>; Tue, 03 Jul 2018 10:12:44 -0700 (PDT) X-Va-CD: 0 X-Va-ID: f260d93d-c4ee-448d-8615-aa17dc51fcfd X-V-A: X-V-T-CD: 1cfa4e18465d030421cce2ab0a06f370 X-V-E-CD: cdd40f8647e23d4ec844849bf330fa88 X-V-R-CD: 4e142f17f806bc62b219d8661f5a7e99 X-V-CD: 0 X-V-ID: b6698293-0698-440d-8ea8-73a39bec8c68 Received: from process_milters-daemon.ma1-mmpp-sz07.apple.com by ma1-mmpp-sz07.apple.com (Oracle Communications Messaging Server 8.0.2.3.20180614 64bit (built Jun 14 2018)) id <0PBA00F00VQRQA00@ma1-mmpp-sz07.apple.com>; Tue, 03 Jul 2018 10:12:38 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-03_07:,, signatures=0 X-Proofpoint-Scanner-Instance: ma-grpmailp-qapp22.corp.apple.com-10000_instance1 Received: from [17.234.149.33] (unknown [17.234.149.33]) by ma1-mmpp-sz07.apple.com (Oracle Communications Messaging Server 8.0.2.3.20180614 64bit (built Jun 14 2018)) with ESMTPSA id <0PBA001CLVSZ1Y30@ma1-mmpp-sz07.apple.com>; Tue, 03 Jul 2018 10:12:38 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: Date: Tue, 03 Jul 2018 10:12:35 -0700 Cc: edk2-devel@lists.01.org Message-id: <43294E30-F00E-4608-B117-429A25B93371@apple.com> References: To: Toan Le manh X-Mailer: Apple Mail (2.3445.6.18) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRmVeSWpSXmKPExsUiqOHDqtu7zjraYPNeVos9h44yW0xfeIHZ gclj56y77B7ds/+xBDBFcdmkpOZklqUW6dslcGWcPXqYtWAKR8XlGwcYGxgPsXUxcnJICJhI TG/cxtzFyMUhJLCfSeLY2y4mkASvgKDEj8n3WLoYOTiYBeQlDp6XBQkzC2hJfH/UygJRv5FJ 4vnpXVBOF5PE+t39TBBTuSQWbD3NCmHrSvzc/Qkqziax/sQSKFtLYuGqzcww9r2bixhh7FOP Z7JD2JwS579MhLJ1JN7snMMIsayTSeLQ/JtQC7Ildi7fBmUHSMzbPB9sqJDARCaJg+uMQWxh AXGJd2c2MUPYFhKtj9rAjmATUJZYMf8D2AJOgWCJnZcawGwWAVWJyZsmskG8LC3xcOJxVkio 2EhcadjIBjE/QOL/2aMsILaIgKbEm0UdUIcqSfzfdYR5AqPsLKSAnIUIyFlIAbmAkXkVo3Bu YmaObmaekbFeYkFBTqpecn7uJkZQNK9mEt/B+Pm14SFGAQ5GJR7eFaXW0UKsiWXFlbmHGKU5 WJTEeT/sEosWEkhPLEnNTk0tSC2KLyrNSS0+xMjEwSnVwDhv58/trOGWl7auLn/0psqt/73H tk1Fhzn2FjxY+filqkP8kj/6DAU3L6a7nz3Pvkl25b7yaVcj0/xEn3zhyZiwnifwp+cWrgW/ fp7fIsK7R2up+/9zByb2/zh8b5/IOetfbJqFinGpu00Y7NdMamW0Zbu65krW+/JvbC/tOO9q hLRym3apOrQqsRRnJBpqMRcVJwIA7NtRpscCAAA= Subject: Re: gRT->SetVariable ACCESS DENIED error X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2018 17:12:46 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Toan, What arguments did you pass to gRT->SetVariable()? What implementation did you test on? In general there are "wiggle words" in the UEFI Spec that make it legal to return other error codes. Back in the day when NOR FLASH was expensive and EFI was size constrained we did not want to have to filter every return value from a lower level to convert it to a spec required return code. Thanks, Andrew Fish > On Jul 3, 2018, at 2:10 AM, Toan Le manh wrote: > > Dear all, > > I'm facing the Status EFI_ACCESS_DENIED when using gRT->SetVariable() > method. > There is no description of this returned status for SetVariable() in UEFI > spec. > Have you ever faced this type of error? Could you please give me any idea > on how this happen? > Sorry for any inconvenience, I'm newbie in EDK2. > > Thanks & Best Regards, > Toan > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel