From patchwork Wed Apr 22 21:55:11 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: 6258571 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 A11F59F389 for ; Wed, 22 Apr 2015 22:14:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A326F202F2 for ; Wed, 22 Apr 2015 22:14:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C072D202EC for ; Wed, 22 Apr 2015 22:14:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934242AbbDVWOz (ORCPT ); Wed, 22 Apr 2015 18:14:55 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:35528 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934099AbbDVWOy (ORCPT ); Wed, 22 Apr 2015 18:14:54 -0400 Received: by pdbqd1 with SMTP id qd1so259172pdb.2; Wed, 22 Apr 2015 15:14:53 -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=5D9ww2g/YHY50piII38hp38PpeJc//za1kCnJg3a+Wg=; b=Rfy8d2pp+EjBy6zdmZ3Qpp/cXyAqr1A1PaLLqEDQxJIucnQkFLH8yYgN+SaF30bECa G+lLdoNaSQwu9H4yyGkBDkvRf54wozalI8r+7tqAne4hi3fEuD/fW4Cot4/UjlXIk1LZ cyZtditqOGBe+zakrnVSJGOFxDXF1CBJhtGojFB7oLIIlEcTIJST9lgc3OlwZ+EdMx5Y WOMkrNiwo1OgBWOLa5w90kgCCk7iUycTakMMTldUQyTMbbzumeq9RJHNtU598H6dlZ8q 0tSdxRTWp7Dc9Mor4ctfU49oEKxBmsdJihqeDW8sEPbSagHTabGsTQNCzcwpBl0QlE6V l+vA== X-Received: by 10.70.0.201 with SMTP id 9mr50757194pdg.4.1429740893550; Wed, 22 Apr 2015 15:14:53 -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 yc2sm5978788pbb.87.2015.04.22.15.14.51 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 22 Apr 2015 15:14:52 -0700 (PDT) Received: by mcgrof@gmail.com (sSMTP sendmail emulation); Wed, 22 Apr 2015 15:12:43 -0700 From: "Luis R. Rodriguez" To: rusty@rustcorp.com.au Cc: akpm@linux-foundation.org, mingo@kernel.org, tj@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, keescook@chromium.org, casey@schaufler-ca.com, cocci@systeme.lip6.fr, "Luis R. Rodriguez" Subject: [PATCH v2 8/8] kernel/module.c: use module_param_config_on() for sig_enforce Date: Wed, 22 Apr 2015 14:55:11 -0700 Message-Id: <1429739711-9415-9-git-send-email-mcgrof@do-not-panic.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1429739711-9415-1-git-send-email-mcgrof@do-not-panic.com> References: <1429739711-9415-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: Andrew Morton 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/module.c b/kernel/module.c index 9e51b37..3a61e25 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -107,7 +107,7 @@ struct list_head *kdb_modules = &modules; /* kdb needs the list of modules */ static bool sig_enforce = IS_ENABLED(CONFIG_MODULE_SIG_FORCE); #ifndef CONFIG_MODULE_SIG_FORCE -module_param(sig_enforce, bool_enable_only, 0644); +module_param_config_on(sig_enforce, sig_enforce, 0644, CONFIG_MODULE_SIG_FORCE); #endif /* !CONFIG_MODULE_SIG_FORCE */ /* Block module loading/unloading? */