Skip to content

Add support for new upcall mechanism for nfsd

Simo Sorce linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 38 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4SUNRPC: 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+11 -41 reply
2/4SUNRPC: Document a bit RPCGSS handling in the NFS ServerDocumentation/filesystems/nfs/00-INDEX Documentation/filesystems/nfs/knfsd-rpcgss.txt+67 -02 replies
3/4SUNRPC: 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+1560 -129 replies
4/4SUNRPC: Use gssproxy upcall for nfsd's RPCGSS authentication.include/linux/sunrpc/auth_gss.h include/linux/sunrpc/svcauth_gss.h net/sunrpc/auth_gss/auth_gss.c +1 more+248 -156 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/4] Add support for new upcall mechanism for nfsd

NOTE: Rebased on top of Bruce Field's for-3.5 tree.

This patchset implements a new upcall mechanism that uses the sunrpc client to talk to gssproxy[1], a new userspace daemon to handle gssapi operations on behalf of other processes on the system.

The main driver for this new mechanism is to overcome limitations with the current daemon and upcall. The current code cannot handle tickets larger than approximatively 2k and cannot handle sending back large user credential sets to the kernel.

These patches have been tested against the development version of gssproxy tagged as kernel_v0.1 in the master repo[2].

I have tested walking into mountpoints using tickets artificially pumped up to 64k and the user is properly authorized, after the accept_se_context call is performed through the new upcall mechanism and gssproxy.

The gssproxy has the potential of handling also init_sec_context calls, but at the moment the only targeted system is nfsd.

Simo.

[1] https://fedorahosted.org/gss-proxy/
[2] http://git.fedorahosted.org/git/?p=gss-proxy.git;a=shortlog;h=refs/tags/kernel_v0.1

Simo Sorce (4):
SUNRPC: conditionally return endtime from import_sec_context
SUNRPC: Document a bit RPCGSS handling in the NFS Server
SUNRPC: Add RPC based upcall mechanism for RPCGSS auth
SUNRPC: Use gssproxy upcall for nfsd's RPCGSS authentication.

 Documentation/filesystems/nfs/00-INDEX         |    2 +
 Documentation/filesystems/nfs/knfsd-rpcgss.txt |   65 ++
 include/linux/sunrpc/auth_gss.h                |    3 +
 include/linux/sunrpc/gss_api.h                 |    2 +
 include/linux/sunrpc/svcauth_gss.h             |    2 +-
 net/sunrpc/auth_gss/Makefile                   |    4 +-
 net/sunrpc/auth_gss/auth_gss.c                 |   11 +-
 net/sunrpc/auth_gss/gss_krb5_mech.c            |    3 +
 net/sunrpc/auth_gss/gss_mech_switch.c          |    5 +-
 net/sunrpc/auth_gss/gss_rpc_upcall.c           |  341 +++++++++
 net/sunrpc/auth_gss/gss_rpc_upcall.h           |   43 ++
 net/sunrpc/auth_gss/gss_rpc_xdr.c              |  904 ++++++++++++++++++++++++
 net/sunrpc/auth_gss/gss_rpc_xdr.h              |  269 +++++++
 net/sunrpc/auth_gss/svcauth_gss.c              |  252 +++++++-
 14 files changed, 1886 insertions(+), 20 deletions(-)
 create mode 100644 Documentation/filesystems/nfs/knfsd-rpcgss.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.7.6