Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11678358ybi; Thu, 25 Jul 2019 21:38:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXQMnaVbKztsfYCjf3YuY4MS8uONwriQUw/+MDGBPW6HgqdyxZ9LJ7mWg9uUsFEiKcbdCJ X-Received: by 2002:a63:e54f:: with SMTP id z15mr89162000pgj.4.1564115896996; Thu, 25 Jul 2019 21:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564115896; cv=none; d=google.com; s=arc-20160816; b=GFIfZn2cAcKcG6Zt34wy51QyQRJooJfAHBzdzr5SGA50H0IcE9DpzD4BNdVgqATWsu 5S3XJHn6vtqlH0ky5JfOoGApJQFZIxo/gxAYG4AglMB7lZ2kOcLftmatJ8uob38DvPQZ FW7bPvpxJNNP4oFDskARDvivyUgUgvrMDyWB9AH7tB7nmuve1d5EILbEtHyJTYEbjIzh 6LPwloR7PFC4LJ4Z0yuzH0UwidYzWchsB8Xx110qEkBVo9bWfXqPMAipgxfvfz3yzuH0 pnoi//Eis6f02FLA5jd7hivaHAcuSK3zhm1lcgEGqhwiPoeTnHXZr13z6Y4DurCkbmZm xe3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=5ooRCGglOxqUIPuc4uTfLklSEqYHohIKllqnK3/XsnE=; b=kxeV3+TRWRhQbRMPQuRxsplFECkv1NfNWvmMoUawEDPbY5+Zb8qUuxe4mutSJ5CJdY nzuclEiRY+AgeXwnckAuoSo6cbb5sBHfgiUhJLAbhbGtn7+bh14xharOcs6zF/MFO6yc boGPh+fdlJXxv+ht3PsskVHFBTCxlPqfC8NAWl2Lnlri0ASqQ/i3jlVLdTJCov78LdCZ dBEFdjPxq0bZnZcaVrpCmUxuMdfxL+3osdTkn0TqurnF8q/F7xq+3XNKr+wlbx9kaDww BMbZ3rH9qjaSMLV6VrjPtZxl4VAygbZaisNq3wClIvPGS98PbC/9wJM2/qA8dTQDRsQF 7ZgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="WVBxM/YV"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v137si18930557pfc.190.2019.07.25.21.38.00; Thu, 25 Jul 2019 21:38:16 -0700 (PDT) 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=@kernel.org header.s=default header.b="WVBxM/YV"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725925AbfGZEhX (ORCPT + 99 others); Fri, 26 Jul 2019 00:37:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:43554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726384AbfGZEhW (ORCPT ); Fri, 26 Jul 2019 00:37:22 -0400 Received: from sol.localdomain (c-24-5-143-220.hsd1.ca.comcast.net [24.5.143.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 36D2422BE8; Fri, 26 Jul 2019 04:37:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564115841; bh=1nt7q8KxuqRj39ao5XXnNzUnhd9l2e/3yTz4YLjJoXQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WVBxM/YV8tvQiY8Qz7TwN9/0ZnDu7VgpBpwwwkwyW7i9HzUhRuKogVAVDOy14013F LGG4C+p4aZZQzL6s0BJAkmDVCj9w5GHvB+9lKBM3O8kJdvvv4gahecherBfmWvKHKK pdn4Heg8oyDdq98B3/8yKc2xXShzOIFt3zFK5cHc= Date: Thu, 25 Jul 2019 21:37:19 -0700 From: Eric Biggers To: Masahiro Yamada Cc: Mimi Zohar , linux-integrity@vger.kernel.org, Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH 4/5] IMA: use obj-y for non-modular objects Message-ID: <20190726043719.GB643@sol.localdomain> Mail-Followup-To: Masahiro Yamada , Mimi Zohar , linux-integrity@vger.kernel.org, Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org References: <20190726021058.4212-1-yamada.masahiro@socionext.com> <20190726021058.4212-5-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190726021058.4212-5-yamada.masahiro@socionext.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 11:10:57AM +0900, Masahiro Yamada wrote: > CONFIG_IMA is a boolean option, so none of these objects is linked > into a module. > > All the objects in this directory are compiled only when CONFIG_IMA=y > since this directory is guarded by the parent Makefile: > > obj-$(CONFIG_IMA) += ima/ > > So, there is no point in creating the composite object, ima.o > > Flatten the code into the obj-$(CONFIG_...) form. > > Signed-off-by: Masahiro Yamada > --- > > security/integrity/ima/Makefile | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/security/integrity/ima/Makefile b/security/integrity/ima/Makefile > index d921dc4f9eb0..5517486c9154 100644 > --- a/security/integrity/ima/Makefile > +++ b/security/integrity/ima/Makefile > @@ -4,10 +4,8 @@ > # Measurement Architecture(IMA). > # > > -obj-$(CONFIG_IMA) += ima.o > - > -ima-y := ima_fs.o ima_queue.o ima_init.o ima_main.o ima_crypto.o ima_api.o \ > +obj-y := ima_fs.o ima_queue.o ima_init.o ima_main.o ima_crypto.o ima_api.o \ > ima_policy.o ima_template.o ima_template_lib.o > -ima-$(CONFIG_IMA_APPRAISE) += ima_appraise.o > -ima-$(CONFIG_HAVE_IMA_KEXEC) += ima_kexec.o > +obj-$(CONFIG_IMA_APPRAISE) += ima_appraise.o > +obj-$(CONFIG_HAVE_IMA_KEXEC) += ima_kexec.o > obj-$(CONFIG_IMA_BLACKLIST_KEYRING) += ima_mok.o > -- This patch changes the kernel command line options ima.ahash_minsize ima.ahash_bufsize to ima_crypto.ahash_minsize ima_crypto.ahash_bufsize Intentional? Note that these are documented in Documentation/admin-guide/kernel-parameters.txt. - Eric