Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5406400ybv; Tue, 11 Feb 2020 15:15:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwbPpiFkobYw1lslFhKJ2ni3TM8SHO1Z2i5dLe2xUKTl2kapbB2SiqcZM1r9FWOPM+5omLE X-Received: by 2002:a9d:6b06:: with SMTP id g6mr7054860otp.93.1581462947391; Tue, 11 Feb 2020 15:15:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581462947; cv=none; d=google.com; s=arc-20160816; b=sm/BQbvB04JuECW1Ll9k5PRccJeg7H6Kh0xCNe1cNHDEgJh8063I34v2XeWFD6DdhT fXyNZRDG4u+Tlctqrt68Lc/JdqzmMRz7QZGZzZGnp7Vi9/CyNsFT424zIheW5ov/xZXC hJ9rWMDdE6s08FiZloPmOV3D8lxkl/tv1ZUS3cOVCeyALrM3pzE04uhn0hCVNQ7Qxg0a qmtaMV+ILvw4xx7AhOvKdyEqPnZUQ+C+JomVbWnPIqndqJf+rZvt05ZdG1Iwhx2S/Xqg ZWk77sxTShSTbg8hK9nst55tt0L9tkmd5REdMqcDhUYCqN8wJXfixxMlnEEh8VMGfGeu thRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=Iha9xp4sRSgk0eY4Hmp0EjPqYaPdWlXsj0OYg2m5bOI=; b=ycmRxKkYcYOuaw+VXzShnhX1J8AazRcHioBW3T4l0MNk0WmJevCjgbccSQWF881Zph negAoieH8IH+V/XNDwvBIvdAX6oxobC7HnV6BCOvvTtD237ykhHIyooWjPlKEDlQMYr5 sy6/Ot+Jv0aJqCiJ2eHlfA8OueBMDM2jMSb909mrtzK05bQGD5wQTa987scpifuZgeJU DikboA8rY+viQem3nZCXTBoTUyWtkgoVdFAnMRA5auFHa40WwuREg9Dsutu6wqrrDdTu gsS8yuR1MKD2NFPhsrHyamT2Kcuje1dyhQhaFlJiXQXNAtALSpub7NrVUmeBgBG2bxLn 5XzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="CW/HVQc2"; 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 l83si2299091oih.58.2020.02.11.15.15.34; Tue, 11 Feb 2020 15:15:47 -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="CW/HVQc2"; 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 S1727976AbgBKXO2 (ORCPT + 99 others); Tue, 11 Feb 2020 18:14:28 -0500 Received: from linux.microsoft.com ([13.77.154.182]:36372 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727668AbgBKXO1 (ORCPT ); Tue, 11 Feb 2020 18:14:27 -0500 Received: from tusharsu-Ubuntu.corp.microsoft.com (unknown [131.107.147.225]) by linux.microsoft.com (Postfix) with ESMTPSA id 5BC0B20B9C02; Tue, 11 Feb 2020 15:14:26 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5BC0B20B9C02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1581462866; bh=Iha9xp4sRSgk0eY4Hmp0EjPqYaPdWlXsj0OYg2m5bOI=; h=From:To:Cc:Subject:Date:From; b=CW/HVQc25t6bcrdOMDmXjdRf7BcVLhE6wLL5iPoJUtJGRiIYniReZOlVnNXd42eyD GEdLIkA9Z7fI3SjbBWsySrEsVut4c6M4VyFPOyFBidW3a+Q2pdraK/ZOJvOzUI+0WU uGSt9i8ulhlHscXZb8O5sH7/JPFng3P/d4NoUAb8= From: Tushar Sugandhi To: zohar@linux.ibm.com, joe@perches.com, skhan@linuxfoundation.org, linux-integrity@vger.kernel.org Cc: sashal@kernel.org, nramas@linux.microsoft.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/3] IMA: improve log messages in IMA Date: Tue, 11 Feb 2020 15:14:11 -0800 Message-Id: <20200211231414.6640-1-tusharsu@linux.microsoft.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some files under IMA prefix the log statement with the respective file names and not with the string "ima". This is not consistent with the rest of the IMA files. The function process_buffer_measurement() does not have log messages for failure conditions. The #define for formatting log messages, pr_fmt, is duplicated in the files under security/integrity. This patchset addresses the above issues. Tushar Sugandhi (3): add log prefix to ima_mok.c, ima_asymmetric_keys.c, ima_queue_keys.c add log message to process_buffer_measurement failure conditions add module name and base name prefix to log statements security/integrity/digsig.c | 2 -- security/integrity/digsig_asymmetric.c | 2 -- security/integrity/evm/evm_crypto.c | 2 -- security/integrity/evm/evm_main.c | 2 -- security/integrity/evm/evm_secfs.c | 2 -- security/integrity/ima/Makefile | 6 +++--- security/integrity/ima/ima_asymmetric_keys.c | 2 -- security/integrity/ima/ima_crypto.c | 2 -- security/integrity/ima/ima_fs.c | 2 -- security/integrity/ima/ima_init.c | 2 -- security/integrity/ima/ima_kexec.c | 1 - security/integrity/ima/ima_main.c | 5 +++-- security/integrity/ima/ima_policy.c | 2 -- security/integrity/ima/ima_queue.c | 2 -- security/integrity/ima/ima_queue_keys.c | 2 -- security/integrity/ima/ima_template.c | 2 -- security/integrity/ima/ima_template_lib.c | 2 -- security/integrity/integrity.h | 6 ++++++ 18 files changed, 12 insertions(+), 34 deletions(-) -- 2.17.1