]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Use the authentication flavor list returned by mountd
authorChuck Lever <chuck.lever@oracle.com>
Sun, 9 Aug 2009 19:09:32 +0000 (15:09 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 9 Aug 2009 19:09:32 +0000 (15:09 -0400)
commit55cd8c7006d038f7aa0e18e11e4e244946f0d087
tree673457f29da29179be1dc368e5c5fcc75c0cecf3
parent4600d8b4d1590f557dbdfe6eb658d0abdadfcf1f
NFS: Use the authentication flavor list returned by mountd

Commit 774124f4 added support in the kernel's NFS mount client to
decode the authentication flavor list returned by mountd.

The NFS client can now use this list to determine whether the
authentication flavor requested by the user is actually supported
by the server.

Note we don't actually negotiate the security flavor if none was
specified by the user.  Instead, we try to use AUTH_SYS, and fail if
the server does not support it.  This prevents us from negotiating
an inappropriate security flavor (some servers list AUTH_NULL first).

If the server does not support AUTH_SYS, the user must provide an
appropriate security flavor by specifying the "sec=" mount option.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c