Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3739768ybv; Sun, 16 Feb 2020 04:43:42 -0800 (PST) X-Google-Smtp-Source: APXvYqxbf4oaUS/3l5Tn/VDPYjiUQHUx9Yk2Ye3MaksVEiccNlKK2z+71gBWqTZdoqm17rsfwYTX X-Received: by 2002:a05:6830:12c3:: with SMTP id a3mr9099830otq.341.1581857022815; Sun, 16 Feb 2020 04:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581857022; cv=none; d=google.com; s=arc-20160816; b=NI0TnAayFpG1YeSlXyV1R6T0uWVGy/z0uu8Wzd8j6isfzvshRSmydrVoCJoUzTXK2e 0HrI26frQcNLSE23Zax5i1aeaoQ/WnUIIs6qt4b3KzameWfMPHeqdXoLG714RBWAwQon EnlIJxoC8UpuJUV9qkhbr9+xNHJYoMQn0JogNq1RhWWI8rn3TlpK1cCkmYmUN1ZXlqic lW4djnRx+3gnZELWmlTWhhVwhB68SaxDyj0x6CrLX2NhJPQK1uWkzV9HBKxRMV0O9nbP t51K48TqifpfosyI8yUcvASuwzC5kiGycJ7ZWxBcl/EbLw6LIWBO5m28JHc/ocoMn33y TJRQ== 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=E8YrijYeJJ3uGgUCxBML4tMnZChhpFCN5D3En7z6QsM=; b=FFA+AtPRwUawsOuGrrhPReg/42h883gZvzRNy1ljb4u4PeQMNnunQmKbeeDFqa4b1E a9uv0huRYrJv5+3CEDH0n2XvMJkz101+dWP5m8lnSiaNVI7EC8yJBuzM0Bc6SqAeWA4r /pSxEwUhOlpLzW2rvdktbVrfznCWMm+v6UeWjFypJqbsBfyJpikAALGM+13s0V4Q2t6Q 2wNgrEbKvXIT6HLjHRDzuTSiYmfmpohZ/EzgSlUVG4dtOi6jKS5DP3FgzRgXLIWgnmSq XgCP8eJA/VlwdVN/pwODT3SD553sGcczZEBrIEpzHdPlyYiG7RvBLJAaEWgAgFg12igB lHyQ== 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 l6si5719360otk.134.2020.02.16.04.43.30; Sun, 16 Feb 2020 04: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; 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 S1728190AbgBPMmp (ORCPT + 99 others); Sun, 16 Feb 2020 07:42:45 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:17402 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728128AbgBPMmp (ORCPT ); Sun, 16 Feb 2020 07:42:45 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01GCYuBH006641 for ; Sun, 16 Feb 2020 07:42:44 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2y6adps6pd-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 16 Feb 2020 07:42:44 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 16 Feb 2020 12:42:42 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) 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) Sun, 16 Feb 2020 12:42:38 -0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01GCgb0P48889918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 16 Feb 2020 12:42:37 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A6A42A4054; Sun, 16 Feb 2020 12:42:37 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B8881A405B; Sun, 16 Feb 2020 12:42:36 +0000 (GMT) Received: from localhost.localdomain (unknown [9.85.138.53]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Sun, 16 Feb 2020 12:42:36 +0000 (GMT) Subject: Re: [PATCH v4 2/3] IMA: Add log statements for failure conditions From: Mimi Zohar To: Tushar Sugandhi , joe@perches.com, skhan@linuxfoundation.org, linux-integrity@vger.kernel.org Cc: sashal@kernel.org, nramas@linux.microsoft.com, linux-kernel@vger.kernel.org Date: Sun, 16 Feb 2020 07:42:36 -0500 In-Reply-To: <20200215014709.3006-3-tusharsu@linux.microsoft.com> References: <20200215014709.3006-1-tusharsu@linux.microsoft.com> <20200215014709.3006-3-tusharsu@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: 7bit X-TM-AS-GCONF: 00 x-cbid: 20021612-4275-0000-0000-000003A277FF X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20021612-4276-0000-0000-000038B67A0A Message-Id: <1581856956.8515.170.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-16_02:2020-02-14,2020-02-16 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=2 priorityscore=1501 adultscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 spamscore=0 bulkscore=0 clxscore=1015 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002160115 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-02-14 at 17:47 -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. > > Signed-off-by: Tushar Sugandhi > Reviewed-by: Lakshmi Ramasubramanian > Suggested-by: Joe Perches Reviewed-by: Mimi Zohar > --- > security/integrity/ima/ima_main.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c > index 9fe949c6a530..aac1c44fb11b 100644 > --- a/security/integrity/ima/ima_main.c > +++ b/security/integrity/ima/ima_main.c > @@ -757,6 +757,9 @@ void process_buffer_measurement(const void *buf, int size, > ima_free_template_entry(entry); > > out: > + if (ret < 0) > + pr_devel("%s: failed, result: %d\n", __func__, ret); > + > return; > } >