Skip to content

NFS: Fix SECINFO processing regression

[email protected] linux-nfs 1 version Applied

Status from this message: Queued for 3.17, but I had to fix a couple of issues with

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1NFS NFS test SECINFO RPC_AUTH_GSS pseudoflavors for supportfs/nfs/nfs4_fs.h fs/nfs/nfs4namespace.c fs/nfs/nfs4proc.c +1 more+61 -472 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH Version 2 0/1] NFS: Fix SECINFO processing regression

From: Andy Adamson <[email protected]>

Sorry for the repeat send - there is only one patch in Version 2...

Iterate over multiple flavors returned by SECINFO. If RPC_AUTH_GSS is in the secinfo list, fully test (get and auth, credential, and gss_context)

Fix some error paths.

Version 2:
- Responded to Trond's comments. Cloned an RPC client for each flavor to test which creates an rpc_auth. Use rpcauth_lookupcred() to create a cred for the user (and gss_context for gss).

- Removed nfs4_negotiate_security from nfs4_submount as is was just called from nfs4_proc_lookup_mountpoint.

Testing: Minimal testing of the nfs_test_gss_flavor. Will run more tests after the June 2014 bakeathon

Note: Can supply a patch for SECINFO_NO_name to use nfs4_negotiate_security.

-->Andy

Andy Adamson (1):
NFS NFS test SECINFO RPC_AUTH_GSS pseudoflavors for support

 fs/nfs/nfs4_fs.h       |   2 +-
 fs/nfs/nfs4namespace.c | 103 ++++++++++++++++++++++++++++---------------------
 fs/nfs/nfs4proc.c      |   2 +-
 net/sunrpc/auth.c      |   1 +
 4 files changed, 61 insertions(+), 47 deletions(-)
Signature · 1 line
1.8.3.1