Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4192489ybv; Mon, 10 Feb 2020 14:19:21 -0800 (PST) X-Google-Smtp-Source: APXvYqx6flKmIfpOhRLJ9IREarLLCD9WmZwikQ8jO7p65yAnAn8cR4GsK0ybpx3Bl4U/LfQ0d9yP X-Received: by 2002:a9d:7559:: with SMTP id b25mr2711588otl.189.1581373161051; Mon, 10 Feb 2020 14:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581373161; cv=none; d=google.com; s=arc-20160816; b=x7IzI8WS15bW99+B4Fwb4qMY9f0Y2EavzJ3k2n9sGsbiOe09D/kylTnKGFKyM6IVq5 EMNPxuHrM7JNF6+gYiyKfhFdrPh07DnQa9KnNpP0agKaqTsv++c5od1/cOi7su8W5DRz D28s32ca0WKOkpfgYz06FPWKDHoGH+Yjm0PgfQuFTgsoyHFZzLgyFpJjQQApUzzDKDMi OD5+Onc0Rafm5CzfaPuEkqbOW7J2DKKKnMluh6FkbQTrOi6drEr3EJIaOAOz2NT+CH1X aOuGc9TP+kCYzLfq/4qaYmRA+lkRwgMmuJcG/3F00XuLLtBAQbsTyNLOM6BQqEOFgC80 o0NQ== 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=TI0cJ46BJu6j76vLmheZmnSllVJDhav+Cmu8YLFU14c=; b=ztkzMexYWcSeXIh+GP/vYie+7Hnbipt6c8usDGgIU0GBboq3Bm4tC96a2A5U3+J8kc XLHw5btqFkMY+17hd5R+HzSpoHk1qPgtCkM5eDA21AFFRer2qJU89zYql5Q+MKp5M7ra 1fYcvaKAG9EzvD0rr0vz7qkoJrjZJ/eQMwel+3DIHrV8TEYIp8A/XKenpTWlmVKqvOBe VuBYj28uEc1XDZmIeQzb+vBOlL/DjdPbFMll4G4ShLTFzCyJ2wRgXxGotZk5zP0M/53P 3ux4BOaofO9tRcqyf88ecTgm/uz51TZclHKO2SE9n33qaiNs8aC/r/Q05XJJKRmxK0Wh 9POw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ovNduz9p; 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 t192si757350oif.75.2020.02.10.14.19.09; Mon, 10 Feb 2020 14:19:21 -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=ovNduz9p; 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 S1727455AbgBJWTB (ORCPT + 99 others); Mon, 10 Feb 2020 17:19:01 -0500 Received: from linux.microsoft.com ([13.77.154.182]:38398 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbgBJWTB (ORCPT ); Mon, 10 Feb 2020 17:19:01 -0500 Received: from [10.137.112.97] (unknown [131.107.147.225]) by linux.microsoft.com (Postfix) with ESMTPSA id 031B320B9C02; Mon, 10 Feb 2020 14:19:01 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 031B320B9C02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1581373141; bh=TI0cJ46BJu6j76vLmheZmnSllVJDhav+Cmu8YLFU14c=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ovNduz9pAqHO+vsqTFZoAmdgF2sLVCPwVgj1QjS9b9N3GxtFGB0kyPgfz7MY/ZRQF pYGFMEg2xpgAJvMi8T8NOH9G8rOoWnZtD0Djm8N4MhLWTXdjbpXu6eBamBLUn7O2g4 LO9qld0wPdmsqpFuwv7CMHhHjGWN9CMdT4OmyeJ0= Subject: Re: [PATCH] IMA: Add log statements for failure conditions. To: Mimi Zohar , Joe Perches , Lakshmi Ramasubramanian , linux-integrity@vger.kernel.org, khan@linuxfoundation.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> <41d61aa5-db98-6291-d91f-104f029c897f@linux.microsoft.com> <13eb9760ba13cee2f25c74c665198faac6a5a2f3.camel@perches.com> <0c9099b5-da29-3e71-0933-123dfe08442c@linux.microsoft.com> <1581371178.5585.913.camel@linux.ibm.com> From: Tushar Sugandhi Message-ID: <58176dbd-f680-c937-9975-af02685a056d@linux.microsoft.com> Date: Mon, 10 Feb 2020 14:19:00 -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: <1581371178.5585.913.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 Thanks Mimi. On 2020-02-10 1:46 p.m., Mimi Zohar wrote: > Hi Tushar, > > On Mon, 2020-02-10 at 13:33 -0800, Tushar Sugandhi wrote: >> On 2020-02-10 8:50 a.m., Joe Perches wrote: >>> On Mon, 2020-02-10 at 08:40 -0800, Lakshmi Ramasubramanian wrote: >>>> 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? >>> https://lore.kernel.org/lkml/4b4ee302f2f97e3907ab03e55a92ccd46b6cf171.camel@perches.com/ >>> >> Thanks Joe. >> >> Joe, Shuah: >> >> Could one of you please clarify if the changes proposed in the above URL >> will be part of Shuah's future patchset? >> >> Or should I include those in my patchset? I am referring to the >> following snippet in security/integrity/integrity.h. > > Joe is saying that he made some suggestions, which Shuah commented on, > but has no intention of posting a formal patch.  The end result of > that discussion is to define pr_fmt once in integrity/integrity.h and > remove any duplication in the integrity/ files. > > I'd appreciate your including that change in this patch set, and if > needed a similar one in ima/ima.h. I will add the proposed change to pr_fmt to this patchset. I will also check if a similar change is needed in ima/ima.h. > > thanks, > > Mimi >