diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-06-18 03:02:13 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-06-18 03:02:13 +0200 |
commit | 8e02f6b9aae9b265064f929c6df15222b9baf256 (patch) | |
tree | b5f018180a6b130731c085ee6ae7c060decfe538 /fs/nfs/internal.h | |
parent | NFS: add XDR decoder for mountd version 3 auth-flavor lists (diff) | |
download | linux-8e02f6b9aae9b265064f929c6df15222b9baf256.tar.xz linux-8e02f6b9aae9b265064f929c6df15222b9baf256.zip |
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/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 0207758de44a..10cf1110df48 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -83,6 +83,8 @@ struct nfs_mount_request { unsigned short protocol; struct nfs_fh *fh; int noresvport; + unsigned int *auth_flav_len; + rpc_authflavor_t *auth_flavs; }; extern int nfs_mount(struct nfs_mount_request *info); |