Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2922544imu; Sun, 9 Dec 2018 12:39:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/UiEyWY7QJ0VHIRxkSvOy2s9Cnqs1TNbf/teF7JsCVsj9DHAeL7Lswbb1KlLV8sIt1y/j6u X-Received: by 2002:a63:a91a:: with SMTP id u26mr8469965pge.349.1544387946245; Sun, 09 Dec 2018 12:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544387946; cv=none; d=google.com; s=arc-20160816; b=wlSkPQoGN5riGWs8wuwguZjQNwlVntRIWcpDiq3nGAGO6DcnWl6uK/hq/FSMwgaRiP uSm63LqPYxgd15w2UWUf8iXvdCmRnLP2m59whRQoqT2QMKA4I13D251n3A85xIqPNtaX tVLi1UWwoU3tPwl+7lHNK00QOjR1/TlrUaG4GUE7LhNXkWBfPRvApeMhyubOq7nqCAs/ xAjJnbWkV/5+9N9IMZkhremhosoFE5fYkLcdORDglT9asXmimtIvCzpFn63cpGXEdQNT 5HnO1Hg/wyWmpI7FJXMegOFUv4SqTdFNWjl2DmyRPz8MUbWZEsjbPQDstyELq9M9RmD3 fIZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=qLx83ixZfPOsKL3V3qw4qYN6hHl7IvkUZ6h4V8w9Tms=; b=qkvY4CgyxRGa0gtRBOWlD2FhETmKv+GFb22iqorpeRYK04DrBHzImXMn9vGZHL6aSW GTTlQGF3/eP9fzienQPtTfiG0VGlm3YA0DaGESEJfOUBjDDrgbbAI1OtWX+TT8WJEG9d dGS9LK3TDWmfH+bVK1PFiF14tz4hwC42kaIw9xtestzSEQXGVDXy4SUOQkmVKnBgTouZ HZsCWKmQPJjWpsrxk07fukHkERSB5HHCYqtlPlZTk4oUn9MwS+9V8Hktg0lTE0mCzbV3 G6vnnRrI8o4JfkjST/rnORl8tfySseAsAaKpoFCtNcYXGhP38Is59I0jsXK6ZtE+qli6 JPbg== 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 66si8275852plc.125.2018.12.09.12.38.51; Sun, 09 Dec 2018 12:39:06 -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 S1726341AbeLIUh7 (ORCPT + 99 others); Sun, 9 Dec 2018 15:37:59 -0500 Received: from mail1.windriver.com ([147.11.146.13]:59092 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbeLIUh7 (ORCPT ); Sun, 9 Dec 2018 15:37:59 -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 wB9KbhZK025876 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 9 Dec 2018 12:37:43 -0800 (PST) Received: from yow-cube1.wrs.com (128.224.56.98) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.408.0; Sun, 9 Dec 2018 12:37:43 -0800 From: Paul Gortmaker To: CC: , Paul Gortmaker , Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , Subject: [PATCH 5/5] security: integrity: make ima_main explicitly non-modular Date: Sun, 9 Dec 2018 15:36:33 -0500 Message-ID: <1544387793-32309-6-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544387793-32309-1-git-send-email-paul.gortmaker@windriver.com> References: <1544387793-32309-1-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Makefile/Kconfig entry controlling compilation of this code is: 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 \ ima_policy.o ima_template.o ima_template_lib.o security/integrity/ima/Kconfig:config IMA security/integrity/ima/Kconfig- bool "Integrity Measurement Architecture(IMA)" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so that when reading the driver there is no doubt it is builtin-only. We also delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments. 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 Signed-off-by: Paul Gortmaker --- security/integrity/ima/ima_main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c index 1b88d58e1325..adaf96932237 100644 --- a/security/integrity/ima/ima_main.c +++ b/security/integrity/ima/ima_main.c @@ -1,4 +1,6 @@ /* + * Integrity Measurement Architecture + * * Copyright (C) 2005,2006,2007,2008 IBM Corporation * * Authors: @@ -19,7 +21,7 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt -#include +#include #include #include #include @@ -560,6 +562,3 @@ static int __init init_ima(void) } late_initcall(init_ima); /* Start IMA after the TPM is available */ - -MODULE_DESCRIPTION("Integrity Measurement Architecture"); -MODULE_LICENSE("GPL"); -- 2.7.4