diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-06-17 21:02:13 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-06-17 21:02:13 -0400 |
commit | 8e02f6b9aae9b265064f929c6df15222b9baf256 (patch) | |
tree | b5f018180a6b130731c085ee6ae7c060decfe538 /fs/nfs/super.c | |
parent | a14017db2852f9393a401a0f64053c331003babf (diff) |
NFS: Update MNT and MNT3 reply decoding functions
Solder xdr_stream-based XDR decoding functions into the in-kernel mountd
client that are more careful about checking data types and watching for
buffer overflows. The new MNT3 decoder includes support for auth-flavor
list decoding.
The "_sz" macro for MNT3 replies was missing the size of the file handle.
I've added this back, and included the size of the auth flavor array.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
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 539a61a0887b..0b72357cdc41 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -1380,6 +1380,7 @@ out_security_failure: | |||
1380 | static int nfs_try_mount(struct nfs_parsed_mount_data *args, | 1380 | static int nfs_try_mount(struct nfs_parsed_mount_data *args, |
1381 | struct nfs_fh *root_fh) | 1381 | struct nfs_fh *root_fh) |
1382 | { | 1382 | { |
1383 | unsigned int auth_flavor_len = 0; | ||
1383 | struct nfs_mount_request request = { | 1384 | struct nfs_mount_request request = { |
1384 | .sap = (struct sockaddr *) | 1385 | .sap = (struct sockaddr *) |
1385 | &args->mount_server.address, | 1386 | &args->mount_server.address, |
@@ -1387,6 +1388,7 @@ static int nfs_try_mount(struct nfs_parsed_mount_data *args, | |||
1387 | .protocol = args->mount_server.protocol, | 1388 | .protocol = args->mount_server.protocol, |
1388 | .fh = root_fh, | 1389 | .fh = root_fh, |
1389 | .noresvport = args->flags & NFS_MOUNT_NORESVPORT, | 1390 | .noresvport = args->flags & NFS_MOUNT_NORESVPORT, |
1391 | .auth_flav_len = &auth_flavor_len, | ||
1390 | }; | 1392 | }; |
1391 | int status; | 1393 | int status; |
1392 | 1394 | ||