Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp968066ybv; Thu, 13 Feb 2020 13:03:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwYbFTxk52FcfFKIyV1MAYuxWLgrwn2DTShHsOCVZStBCWpTGKSguAO35q1S59u8IlFHHY5 X-Received: by 2002:a9d:6b91:: with SMTP id b17mr14096326otq.235.1581627802408; Thu, 13 Feb 2020 13:03:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581627802; cv=none; d=google.com; s=arc-20160816; b=gR340Fi7d9G9F6tyf1u7DF0PYZ1OLktGhpy1cRCmlFT9Wm69ERJguDoJgF1VrP4AJT ujPGManbFg0coEd/VqXEBfeeTSW5jaqZhzouNi3r7fH2iA3J0iejUz7LCeJyCFrwe0s4 oseka1tluTrVXJ/rnEOTvXAoqmfi1wBVQrlRxSFuSola1XN+19M8jjuMG3h7fHMKs1XO Oor+LiBSLlfMLQZ1NJgNS+ZL3SWg5iUrwkKxFAuzmL7CMm3DlKDKzHOjQMe+Wg8txMpw fc5tpt7eUeaND6o8mpw2b3zODltSTD6M3z+lILuc0rtBGJk/ae9MVSlGI8SbdFzCJU1E SN9A== 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=RlVWb6B2Yj5GqYRUZdm6taeMRNIqKiey+W202nGiIi8=; b=GCgLDGA0WVHaop9Ua1FiDulZILFKlOFs6+NNfyxqFQR3p/9H3hBxJhgBjtHX2F6tMS S/kVod2N1dtXhrRTNIbRkL/UPiOuuiqVkAwyDEDdOm2ltz7Lrhz/ioiPQKoqbWWhkMQg 4ojw7GTP7q/VITp0evOFZmE/Nm3D47w474sRAYYHo9f0xAfma4ubyfBGDel0rTBbpH07 LoGvzgLd0tdiqxJjGRgqYbWnE7YlpP44x/WTzW8T2iCtzLj6s0XadDf8NOKn6FGOu/kp M+OUWJbB8kSFnPp68yPO1m4IAHiqctBgbY9ns30x882XQhVFqtzWk2lww+z6Y8IY/Tss XeZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=sEQ+8hWw; 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 y22si1617819oti.269.2020.02.13.13.03.09; Thu, 13 Feb 2020 13:03:22 -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=sEQ+8hWw; 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 S1728167AbgBMVBm (ORCPT + 99 others); Thu, 13 Feb 2020 16:01:42 -0500 Received: from linux.microsoft.com ([13.77.154.182]:43008 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728028AbgBMVBl (ORCPT ); Thu, 13 Feb 2020 16:01:41 -0500 Received: from [10.137.112.97] (unknown [131.107.147.225]) by linux.microsoft.com (Postfix) with ESMTPSA id 9E23C20B9C02; Thu, 13 Feb 2020 13:01:40 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9E23C20B9C02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1581627700; bh=RlVWb6B2Yj5GqYRUZdm6taeMRNIqKiey+W202nGiIi8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=sEQ+8hWw3mCob7DpFUrzstr0mHNKXIzgk7YCHHKxnad3EuL1PSvJ4/EcAn1fifSV4 e9DBmztMMlimpTymNMkLXIKDWemAl1hmLs3FCnMQ1As1aazzoK/UalcVXqAsLWWCOK 6yf3Faot+AUezvwkOFfltihcEeoEM0ONhClB3vj4= Subject: Re: [PATCH v3 2/3] IMA: Add log statements for failure conditions. To: Mimi Zohar , joe@perches.com, skhan@linuxfoundation.org, linux-integrity@vger.kernel.org Cc: sashal@kernel.org, nramas@linux.microsoft.com, linux-kernel@vger.kernel.org References: <20200211231414.6640-1-tusharsu@linux.microsoft.com> <20200211231414.6640-3-tusharsu@linux.microsoft.com> <1581518823.8515.49.camel@linux.ibm.com> <1581553311.8515.96.camel@linux.ibm.com> From: Tushar Sugandhi Message-ID: Date: Thu, 13 Feb 2020 13:01:40 -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: <1581553311.8515.96.camel@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-02-12 4:21 p.m., Mimi Zohar wrote: > On Wed, 2020-02-12 at 14:30 -0800, Tushar Sugandhi wrote: >> >> On 2020-02-12 6:47 a.m., Mimi Zohar wrote: >>> Hi Tushar, >>> >>> Please remove the period at the end of the  Subject line. >> Thanks. I will fix it in the next iteration. >>> >>> On Tue, 2020-02-11 at 15:14 -0800, Tushar Sugandhi wrote: >>>> process_buffer_measurement() does not have log messages for failure >>>> conditions. >>>> >>>> This change adds a log statement in the above function. >>> >>> I agree some form of notification needs to be added.  The question is >>> whether the failure should be audited or a kernel message emitted. >>>  IMA emits audit messages (integrity_audit_msg) for a number of >>> reasons - on failure to calculate a file hash, invalid policy rules, >>> failure to communicate with the TPM, signature verification errors, >>> etc. >> I believe both IMA audit messages and kernel message should be emitted - >> for better discoverability and diagnosability. > > Like file measurement failures, failure to measure a key or the boot > command line should be audited as well.  For debugging purposes, you > could make this message pr_devel. Ok. I will change this to pr_devel in next iteration. > > Mimi >