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=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS 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 09AD3C04AAA for ; Fri, 3 May 2019 13:20:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D6FE12070B for ; Fri, 3 May 2019 13:20:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726720AbfECNUj (ORCPT ); Fri, 3 May 2019 09:20:39 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:32926 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726289AbfECNUi (ORCPT ); Fri, 3 May 2019 09:20:38 -0400 Received: from LHREML712-CAH.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 76F378F424B2CA4CFF18; Fri, 3 May 2019 14:20:37 +0100 (IST) Received: from [10.204.65.144] (10.204.65.144) by smtpsuk.huawei.com (10.201.108.35) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 3 May 2019 14:20:32 +0100 Subject: Re: [PATCH V2 3/4] IMA: Optionally make use of filesystem-provided hashes To: Mimi Zohar , Matthew Garrett , Thiago Jung Bauermann CC: James Bottomley , linux-integrity , Dmitry Kasatkin , , References: <20190226215034.68772-1-matthewgarrett@google.com> <1551991690.31706.416.camel@linux.ibm.com> <1554416328.24612.11.camel@HansenPartnership.com> <1554417315.24612.15.camel@HansenPartnership.com> <1554431217.24612.37.camel@HansenPartnership.com> <1556828700.4134.128.camel@linux.ibm.com> <1556838167.7067.9.camel@linux.ibm.com> <6fc66a58-2d34-e8cc-ee01-ec04c85196eb@huawei.com> <8e806482-2f55-8c9e-ab95-a3ba4c728535@huawei.com> <1556887634.4754.28.camel@linux.ibm.com> From: Roberto Sassu Message-ID: <4d3d551d-26a0-44c1-0bf2-bf0923b68986@huawei.com> Date: Fri, 3 May 2019 15:20:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <1556887634.4754.28.camel@linux.ibm.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.204.65.144] X-CFilter-Loop: Reflected Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On 5/3/2019 2:47 PM, Mimi Zohar wrote: > On Fri, 2019-05-03 at 10:17 +0200, Roberto Sassu wrote: >> On 5/3/2019 8:51 AM, Roberto Sassu wrote: >>> On 5/3/2019 1:02 AM, Mimi Zohar wrote: > >>>> Perhaps instead of making the template format dynamic based on fields, >>>> as I suggested above, define a per policy rule template format option. >>> >>> This should not be too complicated. The template to use will be returned >>> by ima_get_action() to process_measurement(). >> >> Some time ago I made some patches: >> >> https://sourceforge.net/p/linux-ima/mailman/message/31655784/ > > Thank you for the reference!  In addition to Matthew's VFS hash use > case, Thiago's appended signature support would benefit from a per > policy rule template.  Do you want, and have time, to add this > support? No problem. At the moment I'm busy with the digest lists patch set. I will see if I have time later. Roberto -- HUAWEI TECHNOLOGIES Duesseldorf GmbH, HRB 56063 Managing Director: Bo PENG, Jian LI, Yanli SHI