From patchwork Mon Apr 20 23:30:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Luis R. Rodriguez" X-Patchwork-Id: 6244921 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3F0109F313 for ; Mon, 20 Apr 2015 23:32:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FE0120268 for ; Mon, 20 Apr 2015 23:32:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D8E620266 for ; Mon, 20 Apr 2015 23:32:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754605AbbDTXcF (ORCPT ); Mon, 20 Apr 2015 19:32:05 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33193 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752418AbbDTXcB (ORCPT ); Mon, 20 Apr 2015 19:32:01 -0400 Received: by paboj16 with SMTP id oj16so221896414pab.0; Mon, 20 Apr 2015 16:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=m/SzOBzS7ju3Pv+K2z21W67rGyJiu1klJ1yVdvfbzFM=; b=R637Xjsg4CxJcTeY4OQvBzDM9g1d93WzlY09TIl9AwPRDG5eKOi+TqpPvfQLx256TZ /O6bsxyb/BZDm13S43XlIjsdFkvw2t5vrNok9Rrt9/xXvWdu4RFzdsoXMx7ASGuSuz4p 1LkcMx45ns/jcumZTH9JGhBJa7hgdg9kR3yM3iD3CTqKJb8ksGjxqQSEJ666GspQ84rK B5Hb5r125pF/EZy1+/IcA12RNN/ChtBB5/73WCW0IgYhMCb5E8lZ1NPWYjv//hHWmQDE OqYem0sBD8kzR10c0DomdbA3JgYQ0qhBHwhMC90GPE5z7IpIUHShulpsXrCmtR+Y/1mM oZ4g== X-Received: by 10.66.253.225 with SMTP id ad1mr32315244pad.65.1429572720553; Mon, 20 Apr 2015 16:32:00 -0700 (PDT) Received: from mcgrof@gmail.com (c-98-234-145-61.hsd1.ca.comcast.net. [98.234.145.61]) by mx.google.com with ESMTPSA id fm3sm74913pdb.28.2015.04.20.16.31.32 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 20 Apr 2015 16:31:34 -0700 (PDT) Received: by mcgrof@gmail.com (sSMTP sendmail emulation); Mon, 20 Apr 2015 16:31:31 -0700 From: "Luis R. Rodriguez" To: rusty@rustcorp.com.au Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, keescook@chromium.org, casey@schaufler-ca.com, cocci@systeme.lip6.fr, "Luis R. Rodriguez" , Jani Nikula , Christoph Hellwig , Andrew Morton , Geert Uytterhoeven , Hannes Reinecke , Tejun Heo , Ingo Molnar Subject: [PATCH v1 6/6] kernel/module.c: use module_param_config_on() for sig_enforce Date: Mon, 20 Apr 2015 16:30:37 -0700 Message-Id: <1429572637-30234-7-git-send-email-mcgrof@do-not-panic.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1429572637-30234-1-git-send-email-mcgrof@do-not-panic.com> References: <1429572637-30234-1-git-send-email-mcgrof@do-not-panic.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Luis R. Rodriguez" Cc: Rusty Russell Cc: Jani Nikula Cc: Christoph Hellwig Cc: Andrew Morton Cc: Geert Uytterhoeven Cc: Hannes Reinecke Cc: Kees Cook Cc: Tejun Heo Cc: Ingo Molnar Cc: linux-kernel@vger.kernel.org Cc: cocci@systeme.lip6.fr Signed-off-by: Luis R. Rodriguez --- kernel/module.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index 43a1ef3..e63bbd2 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -106,13 +106,7 @@ struct list_head *kdb_modules = &modules; /* kdb needs the list of modules */ #endif /* CONFIG_KGDB_KDB */ #ifdef CONFIG_MODULE_SIG -#ifdef CONFIG_MODULE_SIG_FORCE -static bool sig_enforce = true; -#else -static bool sig_enforce = false; - -module_param(sig_enforce, bool_enable_only, 0644); -#endif /* !CONFIG_MODULE_SIG_FORCE */ +module_param_config_on(sig_enforce, sig_enforce, 0644, CONFIG_MODULE_SIG_FORCE); #endif /* CONFIG_MODULE_SIG */ /* Block module loading/unloading? */