Commit ebd75375 authored by Trond Myklebust's avatar Trond Myklebust

RPC: Some portmappers expect AUTH_UNIX authentication

 Sun's RPC library portmap client therefore defaults to AUTH_UNIX. Change our
 in-kernel client to follow that convention.
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 315f9a38
......@@ -3,9 +3,6 @@
*
* Portmapper client.
*
* FIXME: In a secure environment, we may want to use an authentication
* flavor other than AUTH_NULL.
*
* Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
*/
......@@ -212,7 +209,7 @@ pmap_create(char *hostname, struct sockaddr_in *srvaddr, int proto)
/* printk("pmap: create clnt\n"); */
clnt = rpc_create_client(xprt, hostname,
&pmap_program, RPC_PMAP_VERSION,
RPC_AUTH_NULL);
RPC_AUTH_UNIX);
if (IS_ERR(clnt)) {
xprt_destroy(xprt);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment