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:
@@ -210,9 +210,7 @@ void __init rpc_init_authunix(void)
|
||||
const struct rpc_authops authunix_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.au_flavor = RPC_AUTH_UNIX,
|
||||
#ifdef RPC_DEBUG
|
||||
.au_name = "UNIX",
|
||||
#endif
|
||||
.create = unx_create,
|
||||
.destroy = unx_destroy,
|
||||
.lookup_cred = unx_lookup_cred,
|
||||
|
Reference in New Issue
Block a user