History

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

Linus Torvalds committed 13 years ago

Commit f8cb2792 parents 1d822d6 eb54d432 files · +3 −1Browse files

Unified · Split

2 files
  1. fs/nfs/nfs4proc.c +1 −1
  2. fs/nfs/super.c +2 −0
fs/nfs/nfs4proc.c+1−1
@@ -1078,7 +1078,7 @@ static struct nfs4_state *nfs4_try_open_cached(struct nfs4_opendata *opendata) · 1077 unmodified lines
10781078 struct nfs4_state *state = opendata->state;
10791079 struct nfs_inode *nfsi = NFS_I(state->inode);
10801080 struct nfs_delegation *delegation;
1081− int open_mode = opendata->o_arg.open_flags & (O_EXCL|O_TRUNC);
1081+ int open_mode = opendata->o_arg.open_flags;
10821082 fmode_t fmode = opendata->o_arg.fmode;
10831083 nfs4_stateid stateid;
10841084 int ret = -EAGAIN;
fs/nfs/super.c+2−0
@@ -1942,6 +1942,7 @@ static int nfs23_validate_mount_data(void *options, · 1941 unmodified lines
19421942 args->namlen = data->namlen;
19431943 args->bsize = data->bsize;
19441944
1945+ args->auth_flavors[0] = RPC_AUTH_UNIX;
19451946 if (data->flags & NFS_MOUNT_SECFLAVOUR)
19461947 args->auth_flavors[0] = data->pseudoflavor;
19471948 if (!args->nfs_server.hostname)
@@ -2637,6 +2638,7 @@ static int nfs4_validate_mount_data(void *options, · 689 unmodified lines
26372638 goto out_no_address;
26382639 args->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port);
26392640
2641+ args->auth_flavors[0] = RPC_AUTH_UNIX;
26402642 if (data->auth_flavourlen) {
26412643 if (data->auth_flavourlen > 1)
26422644 goto out_inval_auth;