Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3912598ybv; Mon, 10 Feb 2020 08:42:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzJBxGPCIdDHRUNBwQjq4rtn0Y5E1eYoKJdTJtuHJuJnQaXi9fu7TQZaMLxm2QFpoE3qabO X-Received: by 2002:a05:6830:1050:: with SMTP id b16mr1758611otp.140.1581352926248; Mon, 10 Feb 2020 08:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581352926; cv=none; d=google.com; s=arc-20160816; b=HOUoYPWRhLDrnYmH72X7A2MJahwFeQmD13YwTfiZOh8Tc47JtRvW2a7n/arppS0ZJJ 45VAweUJdUcablYlUmtG/0qMrNpjEylbYPAjpNtaHXDActxREMM96nGn6aSabFVTrTlN H4a3Mr17LR/7HalieTC7viTqhFxqMX8USqiTSldR4oKAT1bDb6i/NVfHzJkDYIE+vwWa s4PRS4g5SnkGdpWno3KY2/CvTvL0oTJJ2lIXL5JeHYaG1sBSCGkE42NBNvN6K7mJbfag OU0HS0BPgF+1AFXOQjQTdX6vvtKkszATLHSO8Z0QuKcWbfpmemWVhjfE2tnR+nyWtEKF kdfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature:dkim-filter; bh=aaSGaS3ossGyX7+S2hS/dE9Ccz7h7mjOtopCX0c0+Ys=; b=i5UjId29Fiw77QUhM+5GN/GT+WBo0LUzpRU44+OGuYT11ZAjsxMw8M8wmuudozz24e nPLwzeZo3q6ZdxBJFCKbS0M1kcD5iSJp0e77LaZQ1oQDBBCKW64pVg0bZhSaRL/LguWF Kb9KXdrOFWT5K1ickinAgFas+E31HxTQpcebm2SyRPLvMkALTWykRXeA1u/v/94kLeWq tHvCgrKL8Kk+aBbLYCjpkReYnRC8pF6gqam8+tFUjqSvJZUzrfFj4rBqJQT3X2F0qoWA Z+sXbPrxkujvT+vpHkEXoH4rNPfwV1OGWJgsfcaVjqSP8TRcrh66WzdXYWiDSJcrjWeC tNeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=CQIuK2qO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si431613otn.35.2020.02.10.08.41.54; Mon, 10 Feb 2020 08:42:06 -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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=CQIuK2qO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727572AbgBJQkk (ORCPT + 99 others); Mon, 10 Feb 2020 11:40:40 -0500 Received: from linux.microsoft.com ([13.77.154.182]:57848 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726796AbgBJQkk (ORCPT ); Mon, 10 Feb 2020 11:40:40 -0500 Received: from [10.137.112.108] (unknown [131.107.174.108]) by linux.microsoft.com (Postfix) with ESMTPSA id D32CB2010ADD; Mon, 10 Feb 2020 08:40:39 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D32CB2010ADD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1581352840; bh=aaSGaS3ossGyX7+S2hS/dE9Ccz7h7mjOtopCX0c0+Ys=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=CQIuK2qOpNJHdLKRXitr68XCYMHmb+/1ft2nDGG66ibVTvv4eUdUxg9hS6O1W+Pwz A0fp/USdq81cy/d/rou9m3i4a3p/o5jbD3GJ3Ptq9GqG9ggMkZsxuCw3gCBrKBAags bOkZ8zIptlV9x/ArIZu/Clyh5QDV5TFl6zTscuzY= Subject: Re: [PATCH] IMA: Add log statements for failure conditions. To: Joe Perches , Mimi Zohar , Tushar Sugandhi , linux-integrity@vger.kernel.org Cc: sashal@kernel.org, linux-kernel@vger.kernel.org References: <20200207195346.4017-1-tusharsu@linux.microsoft.com> <20200207195346.4017-2-tusharsu@linux.microsoft.com> <1581253027.5585.671.camel@linux.ibm.com> From: Lakshmi Ramasubramanian Message-ID: <41d61aa5-db98-6291-d91f-104f029c897f@linux.microsoft.com> Date: Mon, 10 Feb 2020 08:40:39 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/9/20 6:46 PM, Joe Perches wrote: >> >> In addition, as Shuah Khan suggested for the security/integrity/ >> directory, "there is an opportunity here to add #define pr_fmt(fmt) >> KBUILD_MODNAME ": " fmt to integrity.h and get rid of duplicate >> defines." Good point - we'll make that change. With Joe Perches patch (waiting for it to be re-posted), >> are all the pr_fmt definitions needed in each file in the >> integrity/ima directory? > > btw Tushar and Lakshmi: > > I am not formally submitting a patch here. > > I was just making suggestions and please do > with it as you think appropriate. Joe - it's not clear to me what you are suggesting. We'll move the #define for pr_fmt to integrity.h. What's other changes are you proposing? >>> >>> out: >>> + if (ret < 0) >>> + pr_err("Process buffer measurement failed, result: %d\n", >>> + ret); >> >> There's no reason to split the statement like this. The joined line >> is less than 80 characters. Agree. thanks, -lakshmi