From patchwork Fri Oct 13 07:45:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 734745 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 D3EEBCDB483 for ; Fri, 13 Oct 2023 07:46:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229963AbjJMHqc (ORCPT ); Fri, 13 Oct 2023 03:46:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbjJMHqa (ORCPT ); Fri, 13 Oct 2023 03:46:30 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A36F8DA for ; Fri, 13 Oct 2023 00:46:28 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1c9b95943beso15686885ad.1 for ; Fri, 13 Oct 2023 00:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697183188; x=1697787988; darn=vger.kernel.org; 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=gBtuwn9njyU4DYsPjYCQyVji9eWIAOyM+cwBNlNvv8w=; b=QLtwGKDAkWOclm0IURy53XQ2TQAxZPHlkhtBUN+TSgXbxA9CSXtvP1VGpWpWzeQy0Y AddFqjnx3YbXzY4hs0MbQ1FG/D734JMFLdw+3h5sCtf+etyUMH5HbM3FeBgKD/s9FqfQ 0v7ArgVb+wKrvTgZewDn79SBZiuCQu91j+/wJG29n0rR+dTomT3L2bXPtQl6fb01ZLvT e+pBqRSR+DCpVLvBtyKt9rJTVXuJ/cYCikzUlUZJ73uVXOisD392pmYZANABlIC7MLpZ i0Wca7k3uR40kJAs4zPWl8W7BiXIlq7qE4gjcY0BNRDvwtWQ16XIBajxRLjIrb7tRy7O I1og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697183188; x=1697787988; 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=gBtuwn9njyU4DYsPjYCQyVji9eWIAOyM+cwBNlNvv8w=; b=wG+F9RuWRcTiEZbnKPnF4SPyllfz4jNEKOZzhGd4nUowgWGVKUApJQLpIlMhJ+xxMq ZSMq2Ud8WOhUcgM7hz57p15M2hdYxF/Q+NGlrsOJjg8kmDuZk7sqfmIk5ze1h4fyjXwI RLzz2FOT9uCzT0ytAZDHjZVQZSPsOE17Qht6ts8iubraEdy926Api4H63En06DLOq/Ae ZHPJ96xlZER3gpOMpIRl52dqFxo4oRYaFsXofUjXFYLA+TRul5eAQ1/j4igXqi2QzXD4 e8e5yaExkOIBCMO8VW8I+F1oYpOneY7TprAFRqMtMWJD0giLFzhbsnDp+KCUSqPFDBAN Lqlg== X-Gm-Message-State: AOJu0YxVzaSIx7Q32OAot/Mcu4zN9a7MQcMmusNZS33q9PDsZ/sgLGba AQQH/BJbJVyF+qljw/USlvp8iQ== X-Google-Smtp-Source: AGHT+IE1Avla0fhVNFzAxH24XOjPkwxea/S/BSmRGzboh9L1ADBuD7NinRNSPlzdTwyF1m4ZgPgGuw== X-Received: by 2002:a17:902:a504:b0:1c4:56a7:b632 with SMTP id s4-20020a170902a50400b001c456a7b632mr22763499plq.52.1697183188108; Fri, 13 Oct 2023 00:46:28 -0700 (PDT) Received: from localhost.localdomain (fp9875a45d.knge128.ap.nuro.jp. [152.117.164.93]) by smtp.gmail.com with ESMTPSA id z8-20020a170903018800b001c9ccbb8fdasm3200548plg.260.2023.10.13.00.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 00:46:27 -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 v9 2/6] efi: Add EFI_ACCESS_DENIED status code Date: Fri, 13 Oct 2023 16:45:35 +0900 Message-Id: <20231013074540.8980-3-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231013074540.8980-1-masahisa.kojima@linaro.org> References: <20231013074540.8980-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 3ade74795ea9..4776a3dd9a72 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)))