On Wed, Oct 04, 2000 at 11:38:42AM -0700, Michael Smith wrote:
>
>OK, so does anybody know what sunrpc actually does? Everything I've
>read says "duh, it maps ports" Well, OK, I knew that. I'm looking for
>something more concrete.
>
Opens your machine to attacks from $kriptkidd335?
Seriously, it's got something to do with NFS and NIS. I seem to recall some
coverage of it in one of my O'Reilly books. I will dig up the relevant Beast
tonight and bring it THU.
Oh, wait, garcia.efn.org is a SunOS machine, let me look at the manpages...
:!man 3 rpc
Reformatting page. Wait... done
Sun Release 4.1 Last change: 20 January 1990 1
RPC(3N) NETWORK FUNCTIONS RPC(3N)
NAME
rpc - library routines for remote procedure calls
SYNOPSIS AND DESCRIPTION
RPC routines allow C programs to make procedure calls on
other machines across the network. First, the client calls
a procedure to send a request to the server. Upon receipt
of the request, the server calls a dispatch routine to per-
form the requested service, and then sends back a reply.
Finally, the procedure call returns to the client.
All RPC routines require the header <rpc/rpc.h> to be
included.
The RPC routines have been grouped by usage on the following
man pages.
portmap(3N) Library routines for the RPC bind ser-
vice, portmap(8C). The routines docu-
mented on this page include:
pmap_getmaps()
pmap_getport()
pmap_rmtcall()
pmap_set()
pmap_unset()
xdr_pmap()
xdr_pmaplist()
rpc_clnt_auth(3N) Library routines for client side remote
procedure call authentication. The rou-
tines documented on this page include:
auth_destroy()
authnone_create()
authunix_create()
authunix_create_default()
rpc_clnt_calls(3N) Library routines for client side calls.
The routines documented on this page
include:
callrpc()
clnt_broadcast()
clnt_call()
clnt_freeres()
clnt_geterr()
clnt_perrno()
clnt_perror()
clnt_sperrno()
clnt_sperror()
rpc_clnt_create(3N) Library routines for dealing with the
creation and manipulation of CLIENT han-
dles. The routines documented on this
Sun Release 4.1 Last change: 20 January 1990 1
RPC(3N) NETWORK FUNCTIONS RPC(3N)
page include:
clnt_control()
clnt_create()
clnt_create_vers()
clnt_destroy()
clnt_pcreateerror()
clntraw_create()
clnt_spcreateerror()
clnttcp_create()
clntudp_bufcreate()
clntudp_create()
rpc_createrr()
rpc_svc_calls(3N) Library routines for registerring
servers. The routines documented on
this page include:
registerrpc()
svc_register()
svc_unregister()
xprt_register()
xprt_unregister()
rpc_svc_create(3N) Library routines for dealing with the
creation of server side handles. The
routines documented on this page
include:
svc_destroy()
svcfd_create()
svcraw_create()
svctcp_create()
svcudp_bufcreate()
rpc_svc_err(3N) Library routines for server side remote
procedure call errors. The routines
documented on this page include:
svcerr_auth()
svcerr_decode()
svcerr_noproc()
svcerr_noprog()
svcerr_progvers()
svcerr_systemerr()
svcerr_weakauth()
rpc_svc_reg(3N) Library routines for RPC servers. The
routines documented on this page
include:
svc_fds()
svc_fdset()
svc_freeargs()
svc_getargs()
svc_getcaller()
svc_getreq()
Sun Release 4.1 Last change: 20 January 1990 2
RPC(3N) NETWORK FUNCTIONS RPC(3N)
svc_getreqset()
svc_run()
svc_sendreply()
rpc_xdr(3N) XDR library routines for remote pro-
cedure calls. The routines documented
on this page include:
xdr_accepted_reply()
xdr_authunix_parms()
xdr_callhdr()
xdr_callmsg()
xdr_opaque_auth()
xdr_rejected_reply()
xdr_replymsg()
secure_rpc(3N) Library routines for secure remote pro-
cedure calls. The routines documented
on this page include:
authdes_create()
authdes_getucred()
get_mayaddress()
getnetname()
host2netname()
key_decryptsession()
key_encryptsession()
key_gendes()
key_setsecret()
netname2host()
netname2user()
user2netname()
SEE ALSO
portmap(3N), rpc_clnt_auth(3N), rpc_clnt_calls(3N),
rpc_clnt_create(3N), rpc_svc_calls(3N), rpc_svc_create(3N),
rpc_svc_err(3N), rpc_svc_reg(3N), rpc_xdr(3N),
secure_rpc(3N), xdr(3N), publickey(5), portmap(8C),
keyserv(8C)
Sun Release 4.1 Last change: 20 January 1990 3
--
It's a hard work, being a network pusher. Your customers beep you in
the middle of the night, hungry for another fix. But, what can you do?
Customer satisfaction and all that crap...
Pays good, though. --Ingvar the Grey, in the Monastery