Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp63094imu; Fri, 14 Dec 2018 14:29:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/VI1q5mwLjLj3RTfbRm6vm1NIPja38+YhLTe1SXHLio7ecqkyXWgwqD80BzMuBkp03VOs2z X-Received: by 2002:a62:29c3:: with SMTP id p186mr4577963pfp.117.1544826582142; Fri, 14 Dec 2018 14:29:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544826582; cv=none; d=google.com; s=arc-20160816; b=0Ya5Z3pHepYwllb6wRC1qM5ZV3VOczNaWkWZXjV6S9iquC4YKstX/NUITdUxyaCqen VrUdxDkJz7fFMNVSVi6gIjFQ1IDLebQ9oD3XZ6xu4tXCYIUnr71zH8zRYlwQdr1ZTpQf BllWOjyDghKqwztb9u0NKe84AAG5IbMYtTTWCqUdglSkV/ORyx53UN/a16aFpMv2YJhW bfIONgMc3L7rvfxpjC4LmtUlhluSLFXG2O8BWdXSQZGdC6LC+Wcl8/tpdQ74hY2iWAQu 17fWAMWQv8zHLksJ1oCTqkMfDngV43MDN1r43z6CiTK+zEXZ5+jC4wkL2VN7g8rnWD5A AZag== 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:message-id:subject:cc :to:from:date; bh=Xb54ruE7Iip4p5p9CH0MxXScKms8K7qA4LOV3fYB03Y=; b=oREo4tK1/xoy8CKCNWW9OTg7D/2g9/At2n/v7iAyHIxRzqPJxbJ+ffu6QvrLUFJqo0 LqGUArTznv2dylR6r1PyhnX4CRXdwmyQz1t2cFw+uLmpmesJfaYxgOPkFyLhfbjHcs/9 RuVnhGBmTBgY2rPPiakjFED8NIGiuS8/y7GfBbQdsuaB7A8qjC1ZxNIl/2OVE7515QGY 40Q89lrCv4oUNLTuyR7f79tPFZL9gbrg+Ub3+ThiyEF9vQcEo/sQ40g+LuJ9m7Qfe3Df a6fFRokvqubCJNtyKvf2EloRZTjo6Yps/sK6u0FW/OQ5HOGBcQLw60KLlWoGs6B9jy88 hhXQ== ARC-Authentication-Results: i=1; mx.google.com; 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 b5si4935065ple.387.2018.12.14.14.29.27; Fri, 14 Dec 2018 14:29:42 -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; 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 S1730255AbeLNW2d (ORCPT + 99 others); Fri, 14 Dec 2018 17:28:33 -0500 Received: from mail1.windriver.com ([147.11.146.13]:33048 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729519AbeLNW2d (ORCPT ); Fri, 14 Dec 2018 17:28:33 -0500 Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id wBEMS32X002135 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 14 Dec 2018 14:28:03 -0800 (PST) Received: from yow-pgortmak-d1.corp.ad.wrs.com (128.224.56.57) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.408.0; Fri, 14 Dec 2018 14:28:03 -0800 Received: by yow-pgortmak-d1.corp.ad.wrs.com (Postfix, from userid 1000) id 8D95A2E0804; Fri, 14 Dec 2018 17:28:02 -0500 (EST) Date: Fri, 14 Dec 2018 17:28:02 -0500 From: Paul Gortmaker To: Mimi Zohar , James Morris CC: Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , , James Morris Subject: Re: linux-next: Tree for Dec 14 (security/integrity/ima/) Message-ID: <20181214222802.GP11670@windriver.com> References: <20181214181826.5775b958@canb.auug.org.au> <8205aafb-bbc1-2196-17d9-e70e9ac56c2e@infradead.org> <1544815174.3681.16.camel@linux.ibm.com> <20181214202650.GO11670@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20181214202650.GO11670@windriver.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Re: linux-next: Tree for Dec 14 (security/integrity/ima/)] On 14/12/2018 (Fri 15:26) Paul Gortmaker wrote: > [Re: linux-next: Tree for Dec 14 (security/integrity/ima/)] On 14/12/2018 (Fri 14:19) Mimi Zohar wrote: > > > On Fri, 2018-12-14 at 08:25 -0800, Randy Dunlap wrote: > > > > > > on i386: > > > > > > CC security/integrity/ima/ima_main.o > > > ../security/integrity/ima/ima_main.c: In function 'ima_load_data': > > > ../security/integrity/ima/ima_main.c:535:3: error: implicit declaration of function 'is_module_sig_enforced' [-Werror=implicit-function-declaration] > > > sig_enforce = is_module_sig_enforced(); > > > ^ [...] > > Commit 4f83d5ea643a ("security: integrity: make ima_main explicitly > > non-modular") just removed module.h. > > Yes, unfortunately the security directory has additional confusion > because there is name space overlap between "module" as used in Linux > Security Module, and "module" as in "insmod foo.ko". The ima_main > is not modular, but it does use modular infrastructure to load others. > > Fortunately this was the final commit in the series, so it can be > removed or reverted as per maintainer's choice. In the meantime, I'll > look into why my "allyesconfig" build testing didn't pick up on this, > so I can close that testing gap. I've confirmed that most .config result in an implicit header presence by looking at the CPP output. Details below. James, if your input branch to linux-next is strictly fast forward, here is a partial revert to fix up what Randy found that you can apply. Thanks for the report, and again - sorry for not detecting this myself. Paul. -- From 31081a8b46e84d64e2fbda8d0d82ba26d56cc468 Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Fri, 14 Dec 2018 16:48:07 -0500 Subject: [PATCH] security: integrity: partial revert of make ima_main explicitly non-modular In commit 4f83d5ea643a ("security: integrity: make ima_main explicitly non-modular") I'd removed after assuming that the function is_module_sig_enforced() was an LSM function and not a core kernel module function. Unfortunately the typical .config selections used in build testing provide an implicit presence, and so normal/typical build testing did not immediately reveal my incorrect assumption. Cc: Mimi Zohar Cc: Dmitry Kasatkin Cc: James Morris Cc: "Serge E. Hallyn" Cc: linux-ima-devel@lists.sourceforge.net Cc: linux-security-module@vger.kernel.org Reported-by: Randy Dunlap Signed-off-by: Paul Gortmaker diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c index adaf96932237..616a88f95b92 100644 --- a/security/integrity/ima/ima_main.c +++ b/security/integrity/ima/ima_main.c @@ -21,7 +21,7 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt -#include +#include #include #include #include -- 2.7.4