]> git.decadent.org.uk Git - nfs-utils.git/commit
support: Provide an API for creating a privileged RPC client
authorChuck Lever <chuck.lever@oracle.com>
Sat, 18 Apr 2009 13:43:58 +0000 (09:43 -0400)
committerSteve Dickson <steved@redhat.com>
Sat, 18 Apr 2009 13:43:58 +0000 (09:43 -0400)
commit8c94296bc84f3a204f2061c0391a1d2350e4f37e
tree0ec8b0644473604b8c13ab71f4aebfe36791666f
parent41eb279c2f46ca020bc3b8d17811555f74b99d2e
support: Provide an API for creating a privileged RPC client

We needed to guarantee that some RPC programs, such as PMAP, got an
unprivileged port, to prevent exhausting the local privileged port
space sending RPC requests that don't need such privileges.
nfs_get_rpcclient() provides that feature.

However, some RPC programs, such as MNT and UMNT, require a privileged
port.  So, let's provide an additional API for this that also supports
IPv6 and setting a destination port.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/include/nfsrpc.h
support/nfs/rpc_socket.c