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 CD1EFC43219 for ; Fri, 3 May 2019 12:47:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA3872081C for ; Fri, 3 May 2019 12:47:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728088AbfECMrf (ORCPT ); Fri, 3 May 2019 08:47:35 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41262 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728090AbfECMre (ORCPT ); Fri, 3 May 2019 08:47:34 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x43CWFf2029512 for ; Fri, 3 May 2019 08:47:33 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2s8km75g5j-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 03 May 2019 08:47:32 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 3 May 2019 13:47:30 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 3 May 2019 13:47:27 +0100 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x43ClQi429098078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 3 May 2019 12:47:27 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C94D642059; Fri, 3 May 2019 12:47:26 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BEB5C42047; Fri, 3 May 2019 12:47:25 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.95.126]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 3 May 2019 12:47:25 +0000 (GMT) Subject: Re: [PATCH V2 3/4] IMA: Optionally make use of filesystem-provided hashes From: Mimi Zohar To: Roberto Sassu , Matthew Garrett , Thiago Jung Bauermann Cc: James Bottomley , linux-integrity , Dmitry Kasatkin , linux-fsdevel@vger.kernel.org, miklos@szeredi.hu Date: Fri, 03 May 2019 08:47:14 -0400 In-Reply-To: <8e806482-2f55-8c9e-ab95-a3ba4c728535@huawei.com> References: <20190226215034.68772-1-matthewgarrett@google.com> <1551923650.31706.258.camel@linux.ibm.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> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19050312-0008-0000-0000-000002E2E8A1 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19050312-0009-0000-0000-0000224F5A97 Message-Id: <1556887634.4754.28.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-03_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=774 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905030079 Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org 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? Mimi