From patchwork Mon Feb 4 20:19:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 2095011 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 051CC3FD56 for ; Mon, 4 Feb 2013 20:19:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754629Ab3BDUTH (ORCPT ); Mon, 4 Feb 2013 15:19:07 -0500 Received: from mail-ie0-f170.google.com ([209.85.223.170]:55892 "EHLO mail-ie0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754500Ab3BDUTF (ORCPT ); Mon, 4 Feb 2013 15:19:05 -0500 Received: by mail-ie0-f170.google.com with SMTP id c11so6409863ieb.29 for ; Mon, 04 Feb 2013 12:19:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:subject:to:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=EjYzQgeYc+e2wvpvSS9ZnYC165+Cz3wswD6dzttM2f4=; b=DDilNcVRWxoykrHkKnYRdijUwtHQ7e+gt6sW/KcL1DP783eBy6Eqt9YESZBY89H5EV yRqKgV6FtVQ6eP47mbcnkxMX4FxgWHwUpJgDTImYte/dWPv2xUURME6P8M7FHtVcaX4l dukKYipnJZ1zMGjRNUFhUPWtDtC9SIB8Sa+yBxbgR5Si826F7nFnNI3kwsKT859WpPjm +aqyGadyhdFuDk9P6DDRLLPPKwlRlJkbQ3Lk2RGrc2qEvnwecYzb2IQoCOeqdcvMLQOd z0s0I2Ay3UziQxqwNSob/r/vhr6BubJLs/ehgvl25QniiJhrA1BNuC/M3YZxiU92CGdl tiCA== X-Received: by 10.50.151.211 with SMTP id us19mr8862237igb.84.1360009145234; Mon, 04 Feb 2013 12:19:05 -0800 (PST) Received: from seurat.1015granger.net (adsl-99-26-161-222.dsl.sfldmi.sbcglobal.net. [99.26.161.222]) by mx.google.com with ESMTPS id kf2sm18038567igc.0.2013.02.04.12.19.04 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 04 Feb 2013 12:19:04 -0800 (PST) From: Chuck Lever Subject: [PATCH v3 1/9] SUNRPC: Missing module alias for auth_rpcgss.ko To: trond.myklebust@netapp.com Cc: linux-nfs@vger.kernel.org Date: Mon, 04 Feb 2013 15:19:03 -0500 Message-ID: <20130204201903.1518.91133.stgit@seurat.1015granger.net> In-Reply-To: <20130204201458.1518.12931.stgit@seurat.1015granger.net> References: <20130204201458.1518.12931.stgit@seurat.1015granger.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Commit f344f6df "SUNRPC: Auto-load RPC authentication kernel modules", Mon Mar 20 13:44:08 2006, adds a request_module() call in rpcauth_create() to auto-load RPC security modules when a ULP tries to create a credential of that flavor. In rpcauth_create(), the name of the module to load is built like this: request_module("rpc-auth-%u", flavor); This means that for, say, RPC_AUTH_GSS, request_module() is looking for a module or alias called "rpc-auth-6". The GSS module is named "auth_rpcgss", and commit f344f6df does not add any new module aliases. There is also no such alias provided in /etc/modprobe.d on my system (Fedora 16). Without this alias, the GSS module is not loaded on demand. Signed-off-by: Chuck Lever --- net/sunrpc/auth_gss/auth_gss.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 6e5c824..4db065d 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c @@ -1721,6 +1721,7 @@ static void __exit exit_rpcsec_gss(void) rcu_barrier(); /* Wait for completion of call_rcu()'s */ } +MODULE_ALIAS("rpc-auth-6"); MODULE_LICENSE("GPL"); module_param_named(expired_cred_retry_delay, gss_expired_cred_retry_delay,