Skip to content

nfs-utils: convert gssd to TI-RPC and add IPv6 support (try #2)

Jeff Layton linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6nfs-utils: make getnameinfo() required for --enable-gssconfigure.ac+2 -00 replies
2/6nfs-utils: store the address given in the upcall for later useutils/gssd/gssd.h utils/gssd/gssd_proc.c+75 -173 replies
3/6nfs-utils: skip getaddrinfo in create_auth_rpc_client unless we need portutils/gssd/gssd_proc.c+81 -5310 replies
4/6nfs-utils: split out gssd rpc client creation into separate functionutils/gssd/gssd_proc.c+49 -310 replies
5/6nfs-utils: when TIRPC is enabled, use new API to create RPC clientutils/gssd/gssd_proc.c+76 -01 reply
6/6nfs-utils: add IPv6 code to gssdutils/gssd/gssd_proc.c+34 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] nfs-utils: convert gssd to TI-RPC and add IPv6 support (try #2)

This patchset is a second attempt at adding support for IPv6 to rpc.gssd. The main changes from the first set are some minor fixes and changes suggested by Chuck Lever. This set is also based on mainline nfs-utils since the requisite patches for it are now there.

In order to do this, we first have to convert rpc.gssd to use TI-RPC. The first 5 patches do this and abstract out some of the code to make this easier. Once that support is in place, the last patch in the series actually adds the (fairly minimal) changes to add IPv6 support.

The series should be fully bisectable, but I've only really tested the end result for anything other than to see if it compiles. With these patches I've been able to mount an OpenSolaris server using NFSv3/4 + IPv6 + krb5 auth

Specific changes from the last set:
- cleaned up the usage of sockaddr and sockaddr_storage and pointers to them
- moved the sockaddr_storage to be part of the clnt_info instead of a separate allocation
- use a C99 initializer for ai_hints instead of memset()
- properly handle a return of EAI_SYSTEM from getaddrinfo()

Comments welcome.

Jeff Layton (6):
nfs-utils: make getnameinfo() required for --enable-gss
nfs-utils: store the address given in the upcall for later use
nfs-utils: skip getaddrinfo in create_auth_rpc_client unless we need
port
nfs-utils: split out gssd rpc client creation into separate function
nfs-utils: when TIRPC is enabled, use new API to create RPC client
nfs-utils: add IPv6 code to gssd

 configure.ac           |    2 +
 utils/gssd/gssd.h      |    2 +-
 utils/gssd/gssd_proc.c |  398 +++++++++++++++++++++++++++++++++++++-----------
 3 files changed, 309 insertions(+), 93 deletions(-)