From patchwork Mon Aug 7 02:53:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 711367 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64F6DC0015E for ; Mon, 7 Aug 2023 02:54:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229893AbjHGCyd (ORCPT ); Sun, 6 Aug 2023 22:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229854AbjHGCyc (ORCPT ); Sun, 6 Aug 2023 22:54:32 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C702619B4 for ; Sun, 6 Aug 2023 19:54:18 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-686efa1804eso2827556b3a.3 for ; Sun, 06 Aug 2023 19:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691376858; x=1691981658; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HE26zhyKNkPCXPa2HwFDjRJvbDDSFlypR7DF1Gd2Ifo=; b=JWEja0XZ0Kwj7ox+oekYyJHCQ6ubJF9ry9lS0meVZRo3OdZxuTHwYS0VzE0G/HHl9M rBSb9uW+monh9++JB/pvvkW9rAetUFJFieAPsXu1x43Kq6ntht0/QbHQadZTBrY6SwfX c5FkPEccfvaCCKCCajQm+jkuE9Dfo8atgvwkE43KChiryWVGQ5zsazdFbI8/BSPW+WBZ NONeU9uSXTYUjJc2Sl4I9WsYTnlPUiL9o7cWLnpQk2HhaQ4a2i/Do4+M+1rd3y+3Fg0E IQR5FTNupB9k2TwWXPH8FDXsrWh+bMh6ncF1A0aUjasy/Qpr124iXwCdjadS/zbVuEr6 KFhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691376858; x=1691981658; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HE26zhyKNkPCXPa2HwFDjRJvbDDSFlypR7DF1Gd2Ifo=; b=PMIJ42rOvAwGs62pXQbW3/UZrq7dC3gbQm3rr91ogsq69GEECfTCExoYgsTW2WYsM3 02V5s08wnjdChFtQ1El6YvMFvGcDXCACWZfWCcVMq+A2ZDnMML8Y8sxGxHtzW2gXyE3f 8lrG0O+L1CZ0PR2wrUHnUJTRJ3lFPpNNi2RbgKZvuiRih2KmRt6Hl6et5/C+JROf7wbm 6eWl5VGj5jDNmFOPunuoLE8tGvUc7Y3pkpvQlvyf62uHNn+i2aJb9Ui2ccTp0exTXPYL Ip7lApX2XlojoKzf9js7r0qBNd5t81HFNiJT7I8FZAx0RNMaq2WoEcZw/H1k3DG6QR35 MAqA== X-Gm-Message-State: AOJu0YwLVo+QBEzsJ1VBIdtFy+hnqzKCW4Tshvno5k9jCjtbxrtzGV1x aXST4WNy+MD6t445IRrQ8/6fJw== X-Google-Smtp-Source: AGHT+IHQA9BMFCnntNc/Sng9MIlyD6wUYGhHHU+dM4gaCPPHxXubSxC9mcFgO4H12SIiV5tDzc8KUA== X-Received: by 2002:a05:6a00:852:b0:687:42be:a274 with SMTP id q18-20020a056a00085200b0068742bea274mr9288145pfk.5.1691376858064; Sun, 06 Aug 2023 19:54:18 -0700 (PDT) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id g10-20020a62e30a000000b0066a613c4a58sm4980480pfh.102.2023.08.06.19.54.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Aug 2023 19:54:17 -0700 (PDT) From: Masahisa Kojima To: Ard Biesheuvel , Jens Wiklander , Jan Kiszka , Sumit Garg , linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org Cc: Ilias Apalodimas , Johan Hovold , Masahisa Kojima , Randy Dunlap , Heinrich Schuchardt , Jonathan Cameron , linux-efi@vger.kernel.org Subject: [PATCH v8 2/5] efi: Add EFI_ACCESS_DENIED status code Date: Mon, 7 Aug 2023 11:53:39 +0900 Message-Id: <20230807025343.1939-3-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230807025343.1939-1-masahisa.kojima@linaro.org> References: <20230807025343.1939-1-masahisa.kojima@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org This commit adds the EFI_ACCESS_DENIED status code. Acked-by: Sumit Garg Co-developed-by: Ilias Apalodimas Signed-off-by: Ilias Apalodimas Signed-off-by: Masahisa Kojima --- include/linux/efi.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/efi.h b/include/linux/efi.h index faea18b42c08..603bba2d6437 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -39,6 +39,7 @@ #define EFI_WRITE_PROTECTED ( 8 | (1UL << (BITS_PER_LONG-1))) #define EFI_OUT_OF_RESOURCES ( 9 | (1UL << (BITS_PER_LONG-1))) #define EFI_NOT_FOUND (14 | (1UL << (BITS_PER_LONG-1))) +#define EFI_ACCESS_DENIED (15 | (1UL << (BITS_PER_LONG-1))) #define EFI_TIMEOUT (18 | (1UL << (BITS_PER_LONG-1))) #define EFI_ABORTED (21 | (1UL << (BITS_PER_LONG-1))) #define EFI_SECURITY_VIOLATION (26 | (1UL << (BITS_PER_LONG-1)))