From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E110C4742C for ; Mon, 2 Nov 2020 22:39:14 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3DEF920786 for ; Mon, 2 Nov 2020 22:39:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="pTmdytwq"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="NwH6zNp7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3DEF920786 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=KMXxexSlEGq0uydcbwI9zHMu5es+jN8I+ZJuyKrhCkg=; b=pTmdytwq9vMXuLwVHJVG1LhDKZ 9/6FympZd2tfNs5cA1/mLD0Zy2I6Epa7GZanCiaNO1Js5tZ4e7TN3vyctTxVkcDNOQWJs130+Bv/e O3x2yuLIP+hfpnu7DPLattQtyfNZBYJiwtZXiP1k9PjLZsq1Ijv+CQe3jt29XpMGkipRStKATP4l0 4oRRSTWzXZ318dmlgYNQKaphcdCclhuLUiMAF8tdfYSYOliM6qEy1gDhy7Bh3KFEXX7nL07UCsM3c 6lgjPvvjdrUPZaLyr7ACg4DOCnB+M2/5/mhaquNXHXvvBNqahmhLH/C0wvSp4APUZWMXkAwzvtL5G ckIyLz4w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZiT5-0001Ox-Ds; Mon, 02 Nov 2020 22:38:27 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZiT2-0001NU-AS for linux-arm-kernel@lists.infradead.org; Mon, 02 Nov 2020 22:38:25 +0000 Received: from e123331-lin.nice.arm.com (lfbn-nic-1-188-42.w2-15.abo.wanadoo.fr [2.15.37.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 92D0120786; Mon, 2 Nov 2020 22:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604356701; bh=MnRwNpTxYL2HWRVBDNlcJB605B7LEOgiTxYCjqWKkkE=; h=From:To:Cc:Subject:Date:From; b=NwH6zNp7aUEa8vIeWOgEpOMnO6D3UjVOWyZKzVGKiXvNtRGCIZTKfROoJyZCouK9/ z35OFNR5CKDbnbSEuaCIUSNMsVfACajppzruOPr7/wG3HdrTPN3AqOctpY4iJe1odl l94IZ+5YK6B+oJIS3scy3FDQOdS1zr0hg4WDSfGU= From: Ard Biesheuvel To: linux-efi@vger.kernel.org Subject: [PATCH v4 0/3] wire up IMA secure boot for arm64 Date: Mon, 2 Nov 2020 23:37:57 +0100 Message-Id: <20201102223800.12181-1-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201102_173824_436760_71763DA6 X-CRM114-Status: GOOD ( 13.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jlee@suse.com, dmitry.kasatkin@gmail.com, x86@kernel.org, jmorris@namei.org, zohar@linux.ibm.com, clin@suse.com, catalin.marinas@arm.com, linux-integrity@vger.kernel.org, will@kernel.org, Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, serge@hallyn.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is a follow-up to Chester's series [0] to enable IMA to the secure boot state of arm64 platforms, which is EFI based. This v4 implements the changes I suggested to Chester, in particular: - disregard MokSbState when factoring out secure boot mode discovery - turn the x86 IMA arch code into shared code for all architectures. This reduces the final patch to a one liner enabling a Kconfig option for arm64 when EFI is enabled. Build tested only. [0] https://lore.kernel.org/linux-arm-kernel/20201030060840.1810-1-clin@suse.com/ Cc: zohar@linux.ibm.com Cc: jmorris@namei.org Cc: serge@hallyn.com Cc: dmitry.kasatkin@gmail.com Cc: catalin.marinas@arm.com Cc: will@kernel.org Cc: clin@suse.com Cc: x86@kernel.org Cc: jlee@suse.com Cc: linux-integrity@vger.kernel.org, Cc: linux-arm-kernel@lists.infradead.org Chester Lin (3): efi: generalize efi_get_secureboot ima: generalize x86/EFI arch glue for other EFI architectures arm64/ima: add ima_arch support arch/arm64/Kconfig | 1 + arch/x86/boot/compressed/Makefile | 2 +- arch/x86/include/asm/efi.h | 3 ++ arch/x86/kernel/Makefile | 2 - drivers/firmware/efi/libstub/efistub.h | 2 + drivers/firmware/efi/libstub/secureboot.c | 41 +++++++---------- include/linux/efi.h | 23 +++++++++- security/integrity/ima/Makefile | 4 ++ .../integrity/ima/ima_efi.c | 45 +++++-------------- 9 files changed, 60 insertions(+), 63 deletions(-) rename arch/x86/kernel/ima_arch.c => security/integrity/ima/ima_efi.c (60%) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel