diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-08-26 19:23:04 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-08-30 09:19:36 -0400 |
commit | c2190661039b3817b4cc1cbfea620b3f7dbe5cd8 (patch) | |
tree | 61b8f6f287993f604c3a7843aa2322c36f375af9 /fs | |
parent | bd4a3eb15bb42296e61d0fd16f2c7f8cc171b681 (diff) |
SUNRPC: Replace clnt->cl_principal
The clnt->cl_principal is being used exclusively to store the service
target name for RPCSEC_GSS/krb5 callbacks. Replace it with something that
is stored only in the RPCSEC_GSS-specific code.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 1671e1f1fe0d..09c7e3b87c46 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -2717,10 +2717,13 @@ out: | |||
2717 | static int nfs4_lookup_root_sec(struct nfs_server *server, struct nfs_fh *fhandle, | 2717 | static int nfs4_lookup_root_sec(struct nfs_server *server, struct nfs_fh *fhandle, |
2718 | struct nfs_fsinfo *info, rpc_authflavor_t flavor) | 2718 | struct nfs_fsinfo *info, rpc_authflavor_t flavor) |
2719 | { | 2719 | { |
2720 | struct rpc_auth_create_args auth_args = { | ||
2721 | .pseudoflavor = flavor, | ||
2722 | }; | ||
2720 | struct rpc_auth *auth; | 2723 | struct rpc_auth *auth; |
2721 | int ret; | 2724 | int ret; |
2722 | 2725 | ||
2723 | auth = rpcauth_create(flavor, server->client); | 2726 | auth = rpcauth_create(&auth_args, server->client); |
2724 | if (IS_ERR(auth)) { | 2727 | if (IS_ERR(auth)) { |
2725 | ret = -EACCES; | 2728 | ret = -EACCES; |
2726 | goto out; | 2729 | goto out; |