Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4167757ybv; Mon, 10 Feb 2020 13:47:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyZ4obmbfvVi9pCFFZW3hlPDrA2yYVd7wWu6AhFtoOmMLTW/vZj2Ocue70sAmDQx0HJ3eF8 X-Received: by 2002:aca:5295:: with SMTP id g143mr773904oib.25.1581371237581; Mon, 10 Feb 2020 13:47:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581371237; cv=none; d=google.com; s=arc-20160816; b=ERXOYrhWYbCNS0tnIbgSaA3Cp7Xm8xR+Z6ktqLZ9Vu1vrlnU59iAik20cmFMi799jW ydgNjUxltCGuYv+tekLxqQlheiBpo4Toi6jzs3PBfJmQHll9n3mpEGT1MLkLp/jNwx7U Afb4Qh6Xu47qJT1Wymc4GWylEXCG+LJVpychbCTJQyxZI8qGyMMMfMh451DTOnWdPxGD AeQGNJF783kKW7o2PkmRhNG1wANr/Om6oRzr+qII84ye/xGSOY1lwSbMP21V+i8BqpiU boirdA7lwtJLKlRLbjbWD5OaGbTpk82+CmYG/EulZ/IsC3r/x8ab2FZAKACRJmlmWREM /chQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=GSvEuQOUWw5yTg86t+kTClGFC3na6QVGAu7yaWZwULM=; b=Jg2jXzOsYhHsdP5dE3ltvoH5R4QVPc8As/+X1w4Yatg3Vr7HesqNEa5yFvLfiS1IM/ q6q9PnslNiNn7Pp3gv0StLxDah33ZlLSinUpw2lfCjsEE5iLEfFrgYA+SsiHck1iU0lx 5oX6lY+oECHFSmbvAQhQTU53VjrF6MAm3+b/QV2OrKrzzVpOczTUSqAGeNAQsSzjqM3r gTTD8gDu9Inm1++tBNo5rewT57ezVgrKT59LQQDGpafIJQL7wNn/k4UOPzWfqtJ49XLy hjeiG5HHncJD3E4GSrqFzyY+RuFESro7AzdMbuca2pzv31sVoC0mgTZnAnLvvWtjqPnj YjgQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g22si763775otp.55.2020.02.10.13.47.04; Mon, 10 Feb 2020 13:47:17 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727434AbgBJVq2 (ORCPT + 99 others); Mon, 10 Feb 2020 16:46:28 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:12529 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727003AbgBJVq1 (ORCPT ); Mon, 10 Feb 2020 16:46:27 -0500 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01ALi8FI125765 for ; Mon, 10 Feb 2020 16:46:26 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2y1u80qvxp-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 10 Feb 2020 16:46:26 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 10 Feb 2020 21:46:24 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 10 Feb 2020 21:46:20 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01ALkKb463569932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Feb 2020 21:46:20 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 02791A4051; Mon, 10 Feb 2020 21:46:20 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 20BF1A4040; Mon, 10 Feb 2020 21:46:19 +0000 (GMT) Received: from localhost.localdomain (unknown [9.85.140.79]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 10 Feb 2020 21:46:19 +0000 (GMT) Subject: Re: [PATCH] IMA: Add log statements for failure conditions. From: Mimi Zohar To: Tushar Sugandhi , Joe Perches , Lakshmi Ramasubramanian , linux-integrity@vger.kernel.org, khan@linuxfoundation.org Cc: sashal@kernel.org, linux-kernel@vger.kernel.org Date: Mon, 10 Feb 2020 16:46:18 -0500 In-Reply-To: <0c9099b5-da29-3e71-0933-123dfe08442c@linux.microsoft.com> 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> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20021021-4275-0000-0000-0000039FDEB2 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20021021-4276-0000-0000-000038B4148A Message-Id: <1581371178.5585.913.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-10_07:2020-02-10,2020-02-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 mlxscore=0 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002100151 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. thanks, Mimi