Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6394526ybv; Tue, 18 Feb 2020 16:08:45 -0800 (PST) X-Google-Smtp-Source: APXvYqx6U7dYHkYLv1YdApIYPfT5MTfbDjyDQ1jUpsKledE4kFxlxvpk+pT5EWhZ0+PxFYwGm6os X-Received: by 2002:aca:d0a:: with SMTP id 10mr2845767oin.50.1582070924901; Tue, 18 Feb 2020 16:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582070924; cv=none; d=google.com; s=arc-20160816; b=JsnZ6xtvazpo5WPcWqU6cU3E65V/MfNgNpxOCD+vykzdkD7YT3+z5NBFQsIjUBkoBl CUy4P6fIY2F5Dww9Lqg/gN3g7S4n8HcHtzlWdkcl2co5TVM3KjTlJHiCbKZm9jBKhkmk pkhaH5ghfm/FbOFUbswvY4s5oL0wfotsgnVP9OVRblCF26m0LQFO+ebpqptxXPiqnSNr 5du9hnwVZFrUAC46z56Tp9nYnNTBfV+ZL34aa9hugtDQrtxm98l7bmIEsaBaC5EAueIG X4DCFTR8TeQUS2/R8QVn3akHq7FCLrSeATCYBBkA0USdgRKJdIO+ZfMH4pHNqcA/TUX/ FrnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=E4LoSYA568Wrc2tNWvgWgtnR26JPp2YG+l1HQwQL3ys=; b=yzpXVPmzTwutaWE/j855+ji4oXX1jflNzihoJa3ilzRTvuYTq0g1kfi6pOWOSpc5PD VNratsdPG7NQ6jI9ByuhBOb531FFwQ8D4rSSwzRseC5zBb93+yWnxQltXvBks/uzI3OZ 3PdQjWRBzRwPr8QkcrCCH2YLGg6o2Ryi7UhrQjNl61IEZoUzqG7nZRIPvR0jTeipzPnE bbfCtHeZsz1oy6gZoZ4bb5WZ79AB2w8Nrcszj19pf5AuAA64QFhlWdygMUoymwyz6q2Y FkODpmhkgN/CaGgH3n6wIQp29MdQDlNcw30F4ITFMt4WFZNqWWeyMU1jVQsEwjBGX1mp K+2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=jM6NQnCV; 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 c7si218755otf.87.2020.02.18.16.08.33; Tue, 18 Feb 2020 16:08:44 -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=jM6NQnCV; 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 S1727978AbgBSAGZ (ORCPT + 99 others); Tue, 18 Feb 2020 19:06:25 -0500 Received: from linux.microsoft.com ([13.77.154.182]:44408 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727822AbgBSAGW (ORCPT ); Tue, 18 Feb 2020 19:06:22 -0500 Received: from tusharsu-Ubuntu.corp.microsoft.com (unknown [131.107.147.225]) by linux.microsoft.com (Postfix) with ESMTPSA id 98B7620B9C2F; Tue, 18 Feb 2020 16:06:21 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 98B7620B9C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1582070781; bh=E4LoSYA568Wrc2tNWvgWgtnR26JPp2YG+l1HQwQL3ys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jM6NQnCVHaxk6KIszZgE4oomQx91hCeqcxQdcne1QUMhK4LIKPfYfbifa4+mk9t3s ZpkmTRtQqKJMwBU2YP2Ny8E0WYW3epdqRar+rfbDMqlcQi6RQVrp7RcInUHCQHfDy0 ZpUhLANVH8LBVUZ/+DBdrj2uyt4ohSyHzC9EhIgE= 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 v5 1/3] IMA: Update KBUILD_MODNAME for IMA files to ima Date: Tue, 18 Feb 2020 16:06:09 -0800 Message-Id: <20200219000611.28141-2-tusharsu@linux.microsoft.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200219000611.28141-1-tusharsu@linux.microsoft.com> References: <20200219000611.28141-1-tusharsu@linux.microsoft.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The kbuild Makefile specifies object files for vmlinux in the $(obj-y) lists. These lists depend on the kernel configuration[1]. The kbuild Makefile for IMA combines the object files for IMA into a single object file namely ima.o. All the object files for IMA should be combined into ima.o. But certain object files are being added to their own $(obj-y). This results in the log messages from those modules getting prefixed with their respective base file name, instead of "ima". This is inconsistent with the log messages from the IMA modules that are combined into ima.o. This change fixes the above issue. [1] Documentation\kbuild\makefiles.rst Signed-off-by: Tushar Sugandhi Reviewed-by: Lakshmi Ramasubramanian Reviewed-by: Mimi Zohar --- security/integrity/ima/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security/integrity/ima/Makefile b/security/integrity/ima/Makefile index 064a256f8725..67dabca670e2 100644 --- a/security/integrity/ima/Makefile +++ b/security/integrity/ima/Makefile @@ -11,6 +11,6 @@ ima-y := ima_fs.o ima_queue.o ima_init.o ima_main.o ima_crypto.o ima_api.o \ ima-$(CONFIG_IMA_APPRAISE) += ima_appraise.o ima-$(CONFIG_IMA_APPRAISE_MODSIG) += ima_modsig.o ima-$(CONFIG_HAVE_IMA_KEXEC) += ima_kexec.o -obj-$(CONFIG_IMA_BLACKLIST_KEYRING) += ima_mok.o -obj-$(CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS) += ima_asymmetric_keys.o -obj-$(CONFIG_IMA_QUEUE_EARLY_BOOT_KEYS) += ima_queue_keys.o +ima-$(CONFIG_IMA_BLACKLIST_KEYRING) += ima_mok.o +ima-$(CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS) += ima_asymmetric_keys.o +ima-$(CONFIG_IMA_QUEUE_EARLY_BOOT_KEYS) += ima_queue_keys.o -- 2.17.1