Skip to content

NFS: Add support for multiple sec= mount options

Weston Andros Adamson linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5NFSv4: make nfs_find_best_sec staticfs/nfs/nfs4_fs.h fs/nfs/nfs4namespace.c+1 -20 replies
2/5NFS: separate passed security flavs from selectedfs/nfs/client.c fs/nfs/internal.h fs/nfs/nfs4client.c +2 more+41 -350 replies
3/5NFS: cache parsed auth_info in nfs_serverfs/nfs/client.c fs/nfs/nfs4client.c fs/nfs/super.c +1 more+5 -20 replies
4/5NFS: stop using NFS_MOUNT_SECFLAVOUR server flagfs/nfs/nfs4client.c fs/nfs/nfs4namespace.c fs/nfs/nfs4proc.c +2 more+9 -80 replies
5/5NFS: add support for multiple sec= mount optionsfs/nfs/internal.h fs/nfs/nfs4client.c fs/nfs/nfs4namespace.c +3 more+145 -710 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/5] NFS: Add support for multiple sec= mount options

I split up this patchset into multiple patches as Trond requested.

This also has a few changes:
- stop using NFS_MOUNT_SECFLAVOUR server flag
- This flag was now redundant (auth_info stored on nfs_server).

- more consistent use of selected_flavor
- It didn't need to be set in nfs_parse_security_flavors
- NFSv4 wasn't setting is as it just picked the first flavor in nfs4_init_server then depends on SECINFO. nfs4_init_server now sets it for consistency. The reason we need selected_flavor is for the mount client to be able to save it's selection (for nfs < 4.0).

Again, I created a script to test mount options which has been posted to the list as a patch to nfs-ordeal.

-dros

Weston Andros Adamson (5):
NFSv4: make nfs_find_best_sec static
NFS: separate passed security flavs from selected
NFS: cache parsed auth_info in nfs_server
NFS: stop using NFS_MOUNT_SECFLAVOUR server flag
NFS: add support for multiple sec= mount options

 fs/nfs/client.c                |   5 +-
 fs/nfs/internal.h              |   5 +-
 fs/nfs/nfs4_fs.h               |   1 -
 fs/nfs/nfs4client.c            |  26 ++++--
 fs/nfs/nfs4namespace.c         |  17 +++-
 fs/nfs/nfs4proc.c              |  32 ++++---
 fs/nfs/super.c                 | 189 +++++++++++++++++++++++++----------------
 include/linux/nfs_fs_sb.h      |   1 +
 include/linux/nfs_xdr.h        |   7 ++
 include/uapi/linux/nfs_mount.h |   2 +-
 10 files changed, 184 insertions(+), 101 deletions(-)
Signature · 1 line
1.7.12.4 (Apple Git-37)