]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: test SECINFO RPC_AUTH_GSS pseudoflavors for support
authorAndy Adamson <andros@netapp.com>
Thu, 12 Jun 2014 19:02:32 +0000 (15:02 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 24 Jun 2014 22:46:58 +0000 (18:46 -0400)
commitf7d483eaaafb103fd732f077102288b21a25337e
tree8a5d1d0c052adadc3c2533bccf09d9e52868ab0b
parent8acf20c205e4b89ab01a8b1f0e8aeaf73ca91484
NFSv4: test SECINFO RPC_AUTH_GSS pseudoflavors for support

Fix nfs4_negotiate_security to create an rpc_clnt used to test each SECINFO
returned pseudoflavor. Check credential creation  (and gss_context creation)
which is important for RPC_AUTH_GSS pseudoflavors which can fail for multiple
reasons including mis-configuration.

Don't call nfs4_negotiate in nfs4_submount as it was just called by
nfs4_proc_lookup_mountpoint (nfs4_proc_lookup_common)

Signed-off-by: Andy Adamson <andros@netapp.com>
[Trond: fix corrupt return value from nfs_find_best_sec()]
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4_fs.h
fs/nfs/nfs4namespace.c
fs/nfs/nfs4proc.c
net/sunrpc/auth.c