Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2388374ybv; Fri, 14 Feb 2020 17:49:55 -0800 (PST) X-Google-Smtp-Source: APXvYqztZN24y9eCP176+Lpd3KACr0hkm6Uu5J62i8QXmyH1KEFx9Ptseqe/OoB0T6uIdes0iysO X-Received: by 2002:a9d:4c81:: with SMTP id m1mr4495655otf.5.1581731395793; Fri, 14 Feb 2020 17:49:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581731395; cv=none; d=google.com; s=arc-20160816; b=Xb9DBSaJNcf4XAkWCKraqWH2u27+/fM+2sQe2FYibiK7R24gGSJ3pU2oyaeEUFnRqf 61l+8V4u5I8CdHpBkd0zgPHH+k1cRmePwRxPmw615c2W3fjaeSFexHkT7WiytY5RQSnW xqpTorfZsRqJwsaf0S+Mqfq2qfanwClV5UfThMkogKesmulyu4v8D5yy5iKJ+aKQy4ln lvYdrpS8EXbwooznVdfSxQHfIz6nYXOk19qces4VPXUkjEnji4jlooA9nscxz8ehN7uI moOxyPJoDqr58gFSGPkgjh5yJu2HCJXiiti7oWQN3o+8EWHiOYcHvQTLBb7UxtGVbXxo Br6Q== 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=5ranJUL04vD+5slQ9vrmfq8MrUASpsHtOsEdQGeqY3U=; b=ri1XsmPjYU0x8QDIsiPaxQhcpvNrGQIfluAw0jIM0X8Ua+trtgvefhgc93Hsvwm13t tdi8rZ0YtCXanxImxz6elgRdOMKjfz4aDwSawEJgnN7aLi5VGKNhJmLeGTaHgAVsEO4k ZHklnbZC8pSaPRoCHOzqn5FbVMHFgsDdELRPMS5K7e29tcygguE6r4wgXYLReERY30Y9 9KMneirJLdAcMiqxmmlEr3fmAOYgHBdfI7B8n7DjZxGIgV/DDn23FoOdugxpOkvdJWZn a9xH08Enoyg4JqR9nOk8M+rCWl3yk/6siSfKTu1DE3zNLIJWiZwhFwi0grC/vlkF7EwL SvrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=fDx7aawf; 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 t3si3848590oth.247.2020.02.14.17.49.43; Fri, 14 Feb 2020 17:49:55 -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=fDx7aawf; 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 S1728015AbgBOBrv (ORCPT + 99 others); Fri, 14 Feb 2020 20:47:51 -0500 Received: from linux.microsoft.com ([13.77.154.182]:57476 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727756AbgBOBru (ORCPT ); Fri, 14 Feb 2020 20:47:50 -0500 Received: from tusharsu-Ubuntu.corp.microsoft.com (unknown [131.107.147.225]) by linux.microsoft.com (Postfix) with ESMTPSA id 239C520B9C2F; Fri, 14 Feb 2020 17:47:49 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 239C520B9C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1581731269; bh=5ranJUL04vD+5slQ9vrmfq8MrUASpsHtOsEdQGeqY3U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fDx7aawfACObXsSfv+eKPrhQb9mpX9Df06ciHNc5PHDtRZVr7JVG+RnG006mjOJcF GpML2gFIGTohL23yMNiyHrZYm92dU3qMIoaSdLcSnNqv+OLLguzq7w25etThicnCxh da8bPsOs8Q1RZngxW6UlIHpyy0XPt4CMzvZYqJeQ= 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 v4 1/3] IMA: Update KBUILD_MODNAME for IMA files to ima Date: Fri, 14 Feb 2020 17:47:07 -0800 Message-Id: <20200215014709.3006-2-tusharsu@linux.microsoft.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200215014709.3006-1-tusharsu@linux.microsoft.com> References: <20200215014709.3006-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 --- 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