Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4165259ybv; Mon, 10 Feb 2020 13:43:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyVvFOgFVqtVcd0A26UCQnBHfNRg54Aq1oD3ycRCsfdzn0uMK6+h5/VBVIslTeaFAjy2R+Q X-Received: by 2002:a9d:6457:: with SMTP id m23mr2742547otl.162.1581371022379; Mon, 10 Feb 2020 13:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581371022; cv=none; d=google.com; s=arc-20160816; b=qbPbcEM+Qyg8u31KL0LM2JhQu31ThEc82XWNM+AfK77Vy/MM0n9Ukp3GS51ICP5Ko4 L1PloxtNdfHbvEEfU9p/CIQFY11NGW3DHVi5UYrl4on43Wj4wOa6BkZI6h1hqw5Zvar0 aGQIeBJ0DHRci8NQEUZ4eR7w2vwG8E43eTql+q5Yh06zqwCt7qwuyCpDILTAxO0cO74j wPUeyAisg/nFN62Ogz8nA1NbrH50PgX9mBacH2A8B5/ZB39yz5aQbjq6TTz3H6FZ4kuo stbj0yCkvYDHHVIUSZiPNOtVsgaN33YuiRB6YCIqMpgANvREcdJiUNVRy/sj15kee2pV HoYA== 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=c0TukwmucTy5RNLXk2xO2mRGV73gFeBoYmLm/yU+Twk=; b=hexqkFEcq59c36ufJT+8wrJaTPAz7C6ICltSDv2wypEHU1yig2r124I9qT+8mVOC4+ 7UqOuGY1LygGwV4PKXxbU/NYQz9NjJ4l3qCAjy+4E7jEMBd47Es2E5z4kg5x5broWcVr qb+4R1lC1lwUURVdMr3chvJ/M2ciN6h+sarjuKusmGb7W0rSCEp/z6MIFutKPPd+OJJQ whQsSWFd0jSd9hF2Lj8DH025vUPhjP5WbaAL+qixBMtDTYh0jthRJL29D4qc2i0+9prW 9ZalOeg92ufxsSBAOhI+m/mkOxGIyHUPwh+WZc+iHaaFqEEqEa7KL+O0S7YBagvTk26w E6fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ld3OZ01z; 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 73si711888oii.60.2020.02.10.13.43.30; Mon, 10 Feb 2020 13:43:42 -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=ld3OZ01z; 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 S1727582AbgBJVmU (ORCPT + 99 others); Mon, 10 Feb 2020 16:42:20 -0500 Received: from linux.microsoft.com ([13.77.154.182]:53486 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbgBJVmU (ORCPT ); Mon, 10 Feb 2020 16:42:20 -0500 Received: from [10.137.112.97] (unknown [131.107.147.225]) by linux.microsoft.com (Postfix) with ESMTPSA id 20CA020B9C02; Mon, 10 Feb 2020 13:42:19 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 20CA020B9C02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1581370939; bh=c0TukwmucTy5RNLXk2xO2mRGV73gFeBoYmLm/yU+Twk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ld3OZ01zdXOclFIWk5fVyoBn2BoPxcahsNhaHF7p201N+Pyo3e7z2DMLjXSe13BV7 i1Krue3xOgrTAUbmrNVFeHPW8K4YbUjvDrwjXdTvj6GuHJ37Xm7LLLWCBi2S63M8nK ZcWNhPKfwTWZ7u6/IyF1QHWx5UQyyGK+MccGbpxA= Subject: Re: [PATCH] IMA: Add log statements for failure conditions. To: Joe Perches , Lakshmi Ramasubramanian , Mimi Zohar , 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> From: Tushar Sugandhi Message-ID: <16d31f10-012c-5b3c-7069-841070f6b84f@linux.microsoft.com> Date: Mon, 10 Feb 2020 13:42:18 -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: <13eb9760ba13cee2f25c74c665198faac6a5a2f3.camel@perches.com> 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 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. +#ifdef pr_fmt +#undef pr_fmt +#endif + +#define pr_fmt(fmt) KBUILD_MODNAME ": " KBUILD_BASENAME ": " fmt + If I add the above in my patchset, I believe I should remove #defines for pr_fmt in the .c files under /security/integrity? (except the below one) latform_certs/efi_parser.c:#define pr_fmt(fmt) "EFI: "fmt Please let me know. Thanks, Tushar