Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11821268ybi; Fri, 26 Jul 2019 00:07:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5cqk+KebZvjX+wwQoqk12OqdloC9OIbBXHypDVv2dN/jU9/5z/n/3oi0n+5P3bXbIY7Y7 X-Received: by 2002:a17:902:a60d:: with SMTP id u13mr95708182plq.144.1564124824485; Fri, 26 Jul 2019 00:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564124824; cv=none; d=google.com; s=arc-20160816; b=TB4ojP4GI3W09yhJE2KufQWfyhPrtbxT1TF0VbGZi0Dshgg6g18Fuzir6u0Nvkkr49 ApB+p3OpNa8o9z4c/8KWslwWzRrVsINRhMynhrgBm680xRpMJ+BOGoJNohlaJ3AFeYqc mDDHiPswDj8TvHnJiQC4jsOqxBK3pRICNID42McF5i+F+5RseyCcgdXxcfrCBQtAKdVt t7R5M73d+S8Iof5tZy12WNaIWagWTZ3QRXp6Ec0ZOXpI8vkKszGaJ4Ffy02qJqdw8vt0 uGsWTUfLqRLeBr+YndXAXAmFA10rl7cOjNyhdTQbD1xpLp67ZwCknK4A/JwR54PqCQST 7PGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=hf3V59I5cEBKminI065xbdxm3L9O5Fl0uGomw+56D08=; b=auFAESUE8T45uR5a7PrZTw7OWqKuye/cwscHVQaRXoKWiZXl3YnB4kVEJJCyM3Mw/Z VRW6XVPaXMZb4KAUjtiHkfoF0zGAcDerYPJYK6mtn+p2DhdmYXSL2wQFklR55+M3FRAr K42YuuQFSliA8qzJrGcR4nwSFQzNWO6vaE44dR1PDSJBmUpIPAjbeGN/iY5cXULrzemd 83yGFubIg7Y09PAhg9z2d8aGyZJFM3PCtZpdn55s/hJzKftslfC4/wC0wwVIOpiV+//T jIxpu4/9V1esi3vl/+nD+4wzt/sDKIMXboZLXvCZbMEwmPuDbnBgu1YXfLc0QkCIZO27 Fpvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=rvVZeqt6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4si15250809pgj.558.2019.07.26.00.06.49; Fri, 26 Jul 2019 00:07:04 -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=@nifty.com header.s=dec2015msa header.b=rvVZeqt6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726328AbfGZHFW (ORCPT + 99 others); Fri, 26 Jul 2019 03:05:22 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:65401 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbfGZHFW (ORCPT ); Fri, 26 Jul 2019 03:05:22 -0400 Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x6Q752an012469; Fri, 26 Jul 2019 16:05:02 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x6Q752an012469 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1564124703; bh=hf3V59I5cEBKminI065xbdxm3L9O5Fl0uGomw+56D08=; h=References:In-Reply-To:From:Date:Subject:To:From; b=rvVZeqt68sq4elNmUHxFKFkzb91btDIX43mcwq2hjNYQxd1TF6kT8UiCP1Jkvisca qBlbKboUt9XCxFhWcWvZak9fMsYLzBtNCL4TQYfsQjoMyTUTB+gTYodqQke8Ft4C/q cpuqt8cylEebo/fSDxr8l3VYIFZvAcXEujVcrr40NBPgWHmqKv6CD8xrikJCK2LcQT lEouJ8kpVN6Q/yYRb3++/X+Tv66azlAJkdRB5QZmYet2tzNq2E3ou959Qnc6fXAFxd I2tsqF+vC59UJH8MkvR34QqGm4UVK4byzhOFjFdYqFKZlliiUghorBAK5oXS6jB+iF LRuIDt29e1Kew== X-Nifty-SrcIP: [209.85.217.51] Received: by mail-vs1-f51.google.com with SMTP id 190so35434283vsf.9; Fri, 26 Jul 2019 00:05:02 -0700 (PDT) X-Gm-Message-State: APjAAAXAHjh1REvDsFlVTSJihdCBQSUapnbpTgES7FxhZC6a6La9ui26 qYwerTGGTfu6Qzr6QjdZH8btYIPFkTxFv9v2cnw= X-Received: by 2002:a67:f495:: with SMTP id o21mr58544872vsn.54.1564124701676; Fri, 26 Jul 2019 00:05:01 -0700 (PDT) MIME-Version: 1.0 References: <20190726021058.4212-1-yamada.masahiro@socionext.com> <20190726021058.4212-5-yamada.masahiro@socionext.com> <20190726043719.GB643@sol.localdomain> In-Reply-To: <20190726043719.GB643@sol.localdomain> From: Masahiro Yamada Date: Fri, 26 Jul 2019 16:04:25 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/5] IMA: use obj-y for non-modular objects To: Masahiro Yamada , Mimi Zohar , linux-integrity@vger.kernel.org, Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , Linux Kernel Mailing List , linux-security-module Content-Type: text/plain; charset="UTF-8" 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 1:37 PM Eric Biggers wrote: > > 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? No. I missed those kernel parameters. So, please drop this patch. I see no problem in 3/5, 5/5, but if composite object is preferred for consistency, please feel free to drop them as well. Thanks. > Note that these are documented in > Documentation/admin-guide/kernel-parameters.txt. -- Best Regards Masahiro Yamada