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=-12.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 22D13CA9ECF for ; Thu, 31 Oct 2019 15:27:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DC18120873 for ; Thu, 31 Oct 2019 15:27:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="S8uM4Cu6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728319AbfJaP1t (ORCPT ); Thu, 31 Oct 2019 11:27:49 -0400 Received: from linux.microsoft.com ([13.77.154.182]:49938 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728274AbfJaP1t (ORCPT ); Thu, 31 Oct 2019 11:27:49 -0400 Received: from [10.137.112.108] (unknown [131.107.174.108]) by linux.microsoft.com (Postfix) with ESMTPSA id 3414920B7192; Thu, 31 Oct 2019 08:27:48 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3414920B7192 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1572535668; bh=PSOfNbhonJxnlQ8FQZ6akUmZvFLh3Q/fwlVELiDODGs=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=S8uM4Cu6ZThFH0ta8hY1CBsCcxeittxOpA2tkQJciOM57UWWwgifMp+XbxJrwPbKQ Tzakp2WTibrZ38y5COPyO/bGmzfqY+kdXKkmp80AcjnogM94/G7d8KPHMaAzuKCNiA BbcoWzddT5ed8PKKDW72RS4VxM+okx4/FCK/0eTc= Subject: Re: [PATCH v3 1/9] KEYS: Defined an IMA hook to measure keys on key create or update To: Sasha Levin Cc: zohar@linux.ibm.com, dhowells@redhat.com, matthewgarrett@google.com, jamorris@linux.microsoft.com, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, prsriva@linux.microsoft.com References: <20191031011910.2574-1-nramas@linux.microsoft.com> <20191031011910.2574-2-nramas@linux.microsoft.com> <20191031091041.GO1554@sasha-vm> From: Lakshmi Ramasubramanian Message-ID: Date: Thu, 31 Oct 2019 08:27:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191031091041.GO1554@sasha-vm> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: On 10/31/19 2:10 AM, Sasha Levin wrote: Hi Sasha, > On Wed, Oct 30, 2019 at 06:19:02PM -0700, Lakshmi Ramasubramanian wrote: >> Asymmetric keys used for verifying file signatures or certificates >> are currently not included in the IMA measurement list. >> >> This patch defines a new IMA hook namely ima_post_key_create_or_update() >> to measure asymmetric keys. >> >> Signed-off-by: Lakshmi Ramasubramanian > > What are the prerequisites for this patch? I built this patch set on kernel v5.3 I applied the following patch provided by Nayna Jain@IBM and then added my changes: [PATCH v9 5/8] ima: make process_buffer_measurement() generic thanks, -lakshmi