Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2931857ybc; Thu, 14 Nov 2019 01:09:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxm7BQ2/lEXq4JoLEksA8fEo1vMmyiyuuIFByyRU+KdscsIuOp5yrnJEuNL3NaFktEyzaWo X-Received: by 2002:a50:9e4e:: with SMTP id z72mr8736530ede.185.1573722577940; Thu, 14 Nov 2019 01:09:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573722577; cv=none; d=google.com; s=arc-20160816; b=k/k6Et1zItaKxbQnF2NCEjk9VC0Uwj9aoHCLmCr6uZYbWQgRquY6WwWRJqa15Ifphk SvkC79QJKaueePb1Z5pch1HP10XL6vYnymUSxP0YxwEBjFUJYa/q82LiKA3lkcPcJbTL UZLV4geKLsX6/4BidNBfp+IV9Y903FXZKhEUuHSBmzYqaTWj9ERRTq4g+BT7m8exnnrf 6cQ0M2jnWZpwu8p3kLhQFg1Ub42/I4f8J1F5fnRcYtu6b8KAKqhAhG1X8kaKEQMgk7Tq 6M/jEZizyFunhhsZqyYWbnVDJpLMPVZ2kXPLD4/HYMwKSfrRg3W24d/uYek2YV/7OACI 5eWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=2gc3ztlxuv0D+QAnfNaZAasx7N4bLhWhuCnqt4Kms98=; b=iNxe3c6K2jKLN2I82eRqMnSuHQq6sSaRgs5fbcvHclRB8/B+QGXqCh9Lg5ElThL7Fq dNnPOpZw5VDNFQTTUqq73BG543tVgQLTe7kRP2j2V4sCOdK/W7LeisXRi4KhQVRr6uIg LZ6fxGSRZAYAqpVu2qGnj+4oA7pnbtyN+kgRoQMaFlBd6SuBBExNGNrhd5x+FUyuNh07 Inek9JlRVjIEn5a8HC6Dm4ONgpDFQURbpG6mO1go04Gcq7QvNgRuLMIBBQZJ+nJlWQQu P0oi4Cw6NR5jNRT1m9SwwvNAowmQz8wUwa13MdrX8g+vGsEjxa3DhtbhGK8t+vyPY/Zo s+iA== 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 k15si3186492ejb.357.2019.11.14.01.09.14; Thu, 14 Nov 2019 01:09:37 -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 S1727183AbfKNJIO (ORCPT + 99 others); Thu, 14 Nov 2019 04:08:14 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:56133 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfKNJIM (ORCPT ); Thu, 14 Nov 2019 04:08:12 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 47DFxy6dpQz9sSQ; Thu, 14 Nov 2019 20:08:06 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: e14555e3d0e9edfad0a6840c0152f71aba97e793 In-Reply-To: <1572492694-6520-6-git-send-email-zohar@linux.ibm.com> To: Mimi Zohar , linuxppc-dev@ozlabs.org, linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org From: Michael Ellerman Cc: Ard Biesheuvel , Eric Ricther , Nayna Jain , linux-kernel@vger.kernel.org, Mimi Zohar , Paul Mackerras , Jeremy Kerr , Oliver O'Halloran Subject: Re: [PATCH v10 5/9] ima: make process_buffer_measurement() generic Message-Id: <47DFxy6dpQz9sSQ@ozlabs.org> Date: Thu, 14 Nov 2019 20:08:05 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-10-31 at 03:31:30 UTC, Mimi Zohar wrote: > From: Nayna Jain > > process_buffer_measurement() is limited to measuring the kexec boot > command line. This patch makes process_buffer_measurement() more > generic, allowing it to measure other types of buffer data (e.g. > blacklisted binary hashes or key hashes). > > process_buffer_measurement() may be called directly from an IMA > hook or as an auxiliary measurement record. In both cases the buffer > measurement is based on policy. This patch modifies the function to > conditionally retrieve the policy defined PCR and template for the IMA > hook case. > > Signed-off-by: Nayna Jain > [zohar@linux.ibm.com: added comment in process_buffer_measurement()] > Signed-off-by: Mimi Zohar Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/e14555e3d0e9edfad0a6840c0152f71aba97e793 cheers