linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] nfs: teach NFSv3 mount code to try each authflavor in turn
@ 2013-06-27 15:50 Jeff Layton
  2013-06-27 15:50 ` [PATCH v3 1/3] nfs: refactor "need_mount" code out of nfs_try_mount Jeff Layton
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jeff Layton @ 2013-06-27 15:50 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-nfs, chuck.lever, Weston.Adamson

Changes since v2 set:
- fix some signed vs. unsigned type comparisons
- change how an empty server_authlist is handled. Instead of picking an
  authflavor to try at that point, just munge the list to contain only
  RPC_AUTH_NULL. The rest of the logic can take over at that point.

I got a report of a regression in recent kernels. Windows 2012 servers
support v3 and v4.1. They also return a list of authflavors that starts
with AUTH_GSS flavors and ends with AUTH_SYS.

Since commit 4580a92 (NFS: Use server-recommended security flavor by
default (NFSv3)) mounting this server with nfsv3 fails unless you
specify sec=sys. I can replicate the problem with a Linux NFS server
by exporing a filesystem with "sec=krb5:sys".

This patchset overhauls the NFSv3 auth code to try each authflavor in
the list provided by the server in the order that it specified them.
With this, I'm again able to mount the server without needing any
special mount options.

Thanks to Chuck Lever for suggestions thus far...

Jeff Layton (3):
  nfs: refactor "need_mount" code out of nfs_try_mount
  nfs: move server_authlist into nfs_try_mount_request
  nfs: have NFSv3 try server-specified auth flavors in turn

 fs/nfs/super.c | 186 ++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 104 insertions(+), 82 deletions(-)

-- 
1.8.1.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-06-27 15:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-27 15:50 [PATCH v3 0/3] nfs: teach NFSv3 mount code to try each authflavor in turn Jeff Layton
2013-06-27 15:50 ` [PATCH v3 1/3] nfs: refactor "need_mount" code out of nfs_try_mount Jeff Layton
2013-06-27 15:50 ` [PATCH v3 2/3] nfs: move server_authlist into nfs_try_mount_request Jeff Layton
2013-06-27 15:50 ` [PATCH v3 3/3] nfs: have NFSv3 try server-specified auth flavors in turn Jeff Layton
2013-06-27 15:57   ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).