Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1000097imu; Tue, 11 Dec 2018 10:57:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/UJPkn/p2lqziU15L/2Bdqa/7ehgcXw+BKnoYSlZUvtvcx2ZL9Rye76TqS+3IV+Wc1DnqMv X-Received: by 2002:a63:a611:: with SMTP id t17mr15380550pge.338.1544554620354; Tue, 11 Dec 2018 10:57:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544554620; cv=none; d=google.com; s=arc-20160816; b=Zaxlw7QCoFj8inHSZrx3HSTKK9dq/pgfkSXuvqMZyrCdK/dafoQo65cH0ghFjMJCNt jNYrPahlFpbA94P+BHw66lmx/hj+6V++gkoTSMYLh6tDLo8SVUXsAoeDy0kocvCRFeL9 NXfQlgZVDHPmyAzCNDufecKgdumxEqT46lIomLm327z2dhfYDc60CPf6IrYSjOTr6xvO 7EnACwXrUMCZKgogjQAXPLCzzbi87++AqZtI1FDyKFxAFd7M1VOeZrnmsLBeaqzLa5RY IMFrqDNFGwC0I7nXrQdC08jyusxKxyp2Di4Bpa4wMDtihmpfuPe4YTiXIAqU7DoseT+9 JQhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=lL9xV2mUCfEbYC9igzXdY3/XVawS/nsqLwrPPULwFzo=; b=mH1+V0SxBfshI01dEevlepCBLj4uorpb9D5u5QBlnF6d1ftfj7DWDEmLLpW7uU48uZ ZNxmX06yDP31hSZ4cXZ4WF3bPl0/gK7ExcLFFJicTpiqnL0Ut7TOHC/wHtiB2Rz166/D hkvRrOpS62xMDduP0MlBmP8JWMHDK5F7B1RTktZ9KWb0bLKWDgr1aL702xN37hdenFOO aLqMhokb5syEJpJ868yJe/B1fllBGfpWyIqb5eot1U3fIiWBbDcFg3YWA8Z4ztTK0YOl 7CgUHcnnNQ5si7zaO6J5xJ9d32W4/tMUVkKRphdrAHg4LhUKzUd23GfwH1sIfQexbADs Sb6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1si12545509plr.96.2018.12.11.10.56.45; Tue, 11 Dec 2018 10:57:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726893AbeLKSxu (ORCPT + 99 others); Tue, 11 Dec 2018 13:53:50 -0500 Received: from namei.org ([65.99.196.166]:59022 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbeLKSxt (ORCPT ); Tue, 11 Dec 2018 13:53:49 -0500 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id wBBIrUwe012883; Tue, 11 Dec 2018 18:53:30 GMT Date: Wed, 12 Dec 2018 05:53:30 +1100 (AEDT) From: James Morris To: Nayna Jain cc: linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, zohar@linux.ibm.com, dhowells@redhat.com, jforbes@redhat.com, seth.forshee@canonical.com, kexec@lists.infradead.org, keyrings@vger.kernel.org, vgoyal@redhat.com, ebiederm@xmission.com, mpe@ellerman.id.au Subject: Re: [PATCH v2 7/7] ima: Support platform keyring for kernel appraisal In-Reply-To: <20181208202705.18673-8-nayna@linux.ibm.com> Message-ID: References: <20181208202705.18673-1-nayna@linux.ibm.com> <20181208202705.18673-8-nayna@linux.ibm.com> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 9 Dec 2018, Nayna Jain wrote: > On secure boot enabled systems, the bootloader verifies the kernel > image and possibly the initramfs signatures based on a set of keys. A > soft reboot(kexec) of the system, with the same kernel image and > initramfs, requires access to the original keys to verify the > signatures. > > This patch allows IMA-appraisal access to those original keys, now > loaded on the platform keyring, needed for verifying the kernel image > and initramfs signatures. > > Signed-off-by: Nayna Jain > Reviewed-by: Mimi Zohar > Acked-by: Serge Hallyn > - replace 'rc' with 'xattr_len' when calling integrity_digsig_verify() > with INTEGRITY_KEYRING_IMA for readability > Suggested-by: Serge Hallyn Reviewed-by: James Morris -- James Morris