Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1252789pxb; Fri, 13 Nov 2020 08:01:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVKVEPLkYXN3WB3805u4PEyg0wYkGOrZsC00bTdUnHedtIHG0gM9yni10GHCs04TYh6gbE X-Received: by 2002:a17:906:1317:: with SMTP id w23mr2457399ejb.120.1605283293272; Fri, 13 Nov 2020 08:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605283293; cv=none; d=google.com; s=arc-20160816; b=s79VW3TnGowMRkZJ/WvRN0vx5KhbvqGJYYxUtPiAyO1HeYhwtkqfd6Fcxawem6rcPE aubC90ZHVSeh46xiExY2QPvH5En+BMP24+U0QGL9VUFjlMeJ6ox87U2anqRjfoK3M4IH fOu8zusjnQWxc/X3XYQUuqmQ0Zoub3G9h4QjsRchWj24xIL1/pj8MVGJdvI/uPeV3Gr4 43fsQNXOD/fkX8tbHgjjmFDDgq1c5nf1J2VBMPl/kq+cNOFLKj1vrBTkztmUDUkWoC4u eWeA+0uUOkD/+QXTShO+4nuQZsID3bf9+wjtKL5HszvKDypNsHHVJ1ZbUdgoR2bNUWQm fltA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=6Bma8JVVvotebU2sHjOCW2Bu+52hzHJBheh7pWVE0Ow=; b=Lbtewg0hcdTqPhfSaQeQPExlvEm0ao06+dMLNGvJ4hiirtcSYRnwfcThmC7RyOjDZL a3/T2mFj23RtNkdiD2Y9hnEQCEeUdo99VeCIJ3VVyUa486YLnGEESqVJR2HLk1cR4dob +9FbiNdwfz4b84aT2pAQPxRFPfceXpsgn01glDcr/elikuk0LfiAB6FmcnDsG7YI3ZE6 ENy3K5viIuOLywHcGQmqG12MBm6+GkHomw4WMhyaRf5WfVuZTu/POixzDVG9zq+VWFDW njyNBGJgJp7i45uAhNOYFiMrgWz9+yaLwt3M/Lrn5y0KVoHcdaFMUf6Xr1/tde16i8jg iK0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=tS9sH5Gg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me16si5774405ejb.454.2020.11.13.08.01.07; Fri, 13 Nov 2020 08:01:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=tS9sH5Gg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726853AbgKMP5Y (ORCPT + 99 others); Fri, 13 Nov 2020 10:57:24 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:35612 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726741AbgKMP5X (ORCPT ); Fri, 13 Nov 2020 10:57:23 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0ADFfpe3053436; Fri, 13 Nov 2020 10:57:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=6Bma8JVVvotebU2sHjOCW2Bu+52hzHJBheh7pWVE0Ow=; b=tS9sH5Gg7MoMpcQ6luqe//kA0Cl0YCoDfkBP+jHvzeScizXTIa3tLyVD8ajQrmk79BNu II5L775mnYNBJ5wmZ6LxO/+G5+W+nAiqXYVhXTd4qbiO5noi9s0e0jEz24CwON7wdR09 LoVqSqq87rRHa9WdMqY+IADeXmyrCScoXrTAMedcmm+cBaBt4IuSMvoFIriFP1gBj7Q6 u3Oepq0aOzhWGpJtjYcB0LIPupbDIB064MwhGnFWYNGv4GhVNFal9xkPY6RNng3GXXmQ PPlcqUU830UH550O0p6qykFDK0ybLoYcaRM3hA/mZUy/sdKgdaDyQpQdHSF6geUzR1MU tQ== Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 34sw0v8exm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Nov 2020 10:57:20 -0500 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0ADFrVP1012531; Fri, 13 Nov 2020 15:57:19 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma04fra.de.ibm.com with ESMTP id 34nk77ug7p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Nov 2020 15:57:18 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0ADFvGnu3670690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Nov 2020 15:57:16 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 943CCAE04D; Fri, 13 Nov 2020 15:57:16 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 53044AE055; Fri, 13 Nov 2020 15:57:15 +0000 (GMT) Received: from sig-9-65-233-212.ibm.com (unknown [9.65.233.212]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 13 Nov 2020 15:57:15 +0000 (GMT) Message-ID: <27ecba12eb9f61e73b4b3ecf69310ce3f21bc2e9.camel@linux.ibm.com> Subject: Re: [PATCH v2] ima: select ima-buf template for buffer measurement From: Mimi Zohar To: Lakshmi Ramasubramanian Cc: tusharsu@linux.microsoft.com, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 13 Nov 2020 10:57:14 -0500 In-Reply-To: <20201112203959.3657-1-nramas@linux.microsoft.com> References: <20201112203959.3657-1-nramas@linux.microsoft.com> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.28.5 (3.28.5-12.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-13_10:2020-11-13,2020-11-13 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=999 lowpriorityscore=0 impostorscore=0 priorityscore=1501 spamscore=0 malwarescore=0 phishscore=0 suspectscore=3 mlxscore=0 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011130096 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lakshmi, On Thu, 2020-11-12 at 12:39 -0800, Lakshmi Ramasubramanian wrote: > The default IMA template used for all policy rules is the value set > for CONFIG_IMA_DEFAULT_TEMPLATE if the policy rule does not specify > a template. The default IMA template for buffer measurements should be > 'ima-buf' - so that the measured buffer is correctly included in the IMA > measurement log entry. > > With the default template format, buffer measurements are added to > the measurement list, but do not include the buffer data, making it > difficult, if not impossible, to validate. Including 'ima-buf' > template records in the measurement list by default, should not impact > existing attestation servers without 'ima-buf' template support. > > Initialize a global 'ima-buf' template and select that template, > by default, for buffer measurements. > > Signed-off-by: Lakshmi Ramasubramanian Thanks! It's now queued in next-integrity-testing. Mimi