diff options
author | Linus Torvalds | 2013-06-01 12:48:59 +0200 |
---|---|---|
committer | Linus Torvalds | 2013-06-01 12:48:59 +0200 |
commit | f8cb27916ae256ef3b4e2ecca7262109dcfdd083 (patch) | |
tree | 163bffef6ab19dca50a25b454841e006578e233c /fs/nfs/super.c | |
parent | Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jac... (diff) | |
parent | NFS: Fix security flavor negotiation with legacy binary mounts (diff) | |
download | kernel-qcow2-linux-f8cb27916ae256ef3b4e2ecca7262109dcfdd083.tar.gz kernel-qcow2-linux-f8cb27916ae256ef3b4e2ecca7262109dcfdd083.tar.xz kernel-qcow2-linux-f8cb27916ae256ef3b4e2ecca7262109dcfdd083.zip |
Merge tag 'nfs-for-3.10-4' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
Pull two NFS client fixes from Trond Myklebust:
- Fix a regression that broke NFS mounting using klibc and busybox
- Stable fix to check access modes correctly on NFSv4 delegated open()
* tag 'nfs-for-3.10-4' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
NFS: Fix security flavor negotiation with legacy binary mounts
NFSv4: Fix a thinko in nfs4_try_open_cached
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r-- | fs/nfs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index a366107a7331..2d7525fbcf25 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -1942,6 +1942,7 @@ static int nfs23_validate_mount_data(void *options, args->namlen = data->namlen; args->bsize = data->bsize; + args->auth_flavors[0] = RPC_AUTH_UNIX; if (data->flags & NFS_MOUNT_SECFLAVOUR) args->auth_flavors[0] = data->pseudoflavor; if (!args->nfs_server.hostname) @@ -2637,6 +2638,7 @@ static int nfs4_validate_mount_data(void *options, goto out_no_address; args->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port); + args->auth_flavors[0] = RPC_AUTH_UNIX; if (data->auth_flavourlen) { if (data->auth_flavourlen > 1) goto out_inval_auth; |