Skip to content

gss-proxy upcall for nfsd

J. Bruce Fields linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6SUNRPC: make AF_LOCAL connect synchronousnet/sunrpc/xprtsock.c+27 -86 replies
2/6SUNRPC: attempt AF_LOCAL connect on setupnet/sunrpc/xprtsock.c+5 -10 replies
3/6SUNRPC: no idle timeout for AF_LOCAL socketsnet/sunrpc/xprtsock.c+1 -10 replies
4/6SUNRPC: conditionally return endtime from import_sec_contextinclude/linux/sunrpc/gss_api.h net/sunrpc/auth_gss/auth_gss.c net/sunrpc/auth_gss/gss_krb5_mech.c +2 more+13 -60 replies
5/6SUNRPC: Add RPC based upcall mechanism for RPCGSS authnet/sunrpc/auth_gss/Makefile net/sunrpc/auth_gss/gss_rpc_upcall.c net/sunrpc/auth_gss/gss_rpc_upcall.h +2 more+1573 -16 replies
6/6SUNRPC: Use gssproxy upcall for server RPCGSS authentication.Documentation/filesystems/nfs/00-INDEX Documentation/filesystems/nfs/rpc-server-gss.txt net/sunrpc/auth_gss/gss_rpc_upcall.c +4 more+483 -432 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] gss-proxy upcall for nfsd

From: "J. Bruce Fields" <[email protected]>

The following patches add support for rpc servers to use gss-proxy instead of the existing cache-based method to accept new rpcsec_gss contexts.

The existing cache-based upcall has some increasingly annoying limitations that would be difficult to fix without incompatible changes, and gss-proxy looks like a reasonable replacement.

Changes since Simo's last posting:
- All globals are made per-network-namespace.
- The new upcall is negotiated by write to a proc file instead of a module parameter, allowing the choice to be made per-container.
- We reuse a common per-network-namespace rpc client instead of creating a new one for each upcall.
- Locking is relaxed to allow concurrent upcalls.

--b.

J. Bruce Fields (3):
SUNRPC: make AF_LOCAL connect synchronous
SUNRPC: attempt AF_LOCAL connect on setup
SUNRPC: no idle timeout for AF_LOCAL sockets

Simo Sorce (3):
SUNRPC: conditionally return endtime from import_sec_context
SUNRPC: Add RPC based upcall mechanism for RPCGSS auth
SUNRPC: Use gssproxy upcall for server RPCGSS authentication.

 Documentation/filesystems/nfs/00-INDEX           |    2 +
 Documentation/filesystems/nfs/rpc-server-gss.txt |   91 +++
 include/linux/sunrpc/gss_api.h                   |    2 +
 net/sunrpc/auth_gss/Makefile                     |    3 +-
 net/sunrpc/auth_gss/auth_gss.c                   |    2 +-
 net/sunrpc/auth_gss/gss_krb5_mech.c              |    7 +-
 net/sunrpc/auth_gss/gss_mech_switch.c            |    5 +-
 net/sunrpc/auth_gss/gss_rpc_upcall.c             |  360 +++++++++
 net/sunrpc/auth_gss/gss_rpc_upcall.h             |   47 ++
 net/sunrpc/auth_gss/gss_rpc_xdr.c                |  906 ++++++++++++++++++++++
 net/sunrpc/auth_gss/gss_rpc_xdr.h                |  269 +++++++
 net/sunrpc/auth_gss/svcauth_gss.c                |  350 ++++++++-
 net/sunrpc/clnt.c                                |    1 +
 net/sunrpc/netns.h                               |    6 +
 net/sunrpc/xprtsock.c                            |   41 +-
 15 files changed, 2067 insertions(+), 25 deletions(-)
 create mode 100644 Documentation/filesystems/nfs/rpc-server-gss.txt
 create mode 100644 net/sunrpc/auth_gss/gss_rpc_upcall.c
 create mode 100644 net/sunrpc/auth_gss/gss_rpc_upcall.h
 create mode 100644 net/sunrpc/auth_gss/gss_rpc_xdr.c
 create mode 100644 net/sunrpc/auth_gss/gss_rpc_xdr.h
Signature · 1 line
1.7.9.5