NFSv4: Don't use cred->cr_ops->cr_name in nfs4_proc_setclientid()
With the recent change to generic creds, we can no longer use cred->cr_ops->cr_name to distinguish between RPCSEC_GSS principals and AUTH_SYS/AUTH_NULL identities. Replace it with the rpc_authops->au_name instead... Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
@@ -104,9 +104,7 @@ nul_validate(struct rpc_task *task, __be32 *p)
|
||||
const struct rpc_authops authnull_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.au_flavor = RPC_AUTH_NULL,
|
||||
#ifdef RPC_DEBUG
|
||||
.au_name = "NULL",
|
||||
#endif
|
||||
.create = nul_create,
|
||||
.destroy = nul_destroy,
|
||||
.lookup_cred = nul_lookup_cred,
|
||||
|
Reference in New Issue
Block a user