diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-09-13 22:19:31 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-10-01 23:39:58 +0200 |
commit | d15c077e442d3c4167aaac87b3b7fe8ccad67a1f (patch) | |
tree | 3eae78b73c895ebb818307b406f7a18800cbc6a1 /fs/nfsd/state.h | |
parent | nfsd4: set cl_minorversion at create time (diff) | |
download | linux-d15c077e442d3c4167aaac87b3b7fe8ccad67a1f.tar.xz linux-d15c077e442d3c4167aaac87b3b7fe8ccad67a1f.zip |
nfsd4: enforce per-client sessions/no-sessions distinction
Something like creating a client with setclientid and then trying to
confirm it with create_session may not crash the server, but I'm not
completely positive of that, and in any case it's obviously bad client
behavior.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r-- | fs/nfsd/state.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index ec513fd4bae9..e036894bce57 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -455,7 +455,7 @@ extern void nfs4_unlock_state(void); extern int nfs4_in_grace(void); extern void nfs4_release_reclaim(void); extern struct nfs4_client_reclaim *nfsd4_find_reclaim_client(struct nfs4_client *crp); -extern __be32 nfs4_check_open_reclaim(clientid_t *clid); +extern __be32 nfs4_check_open_reclaim(clientid_t *clid, bool sessions); extern void nfs4_free_openowner(struct nfs4_openowner *); extern void nfs4_free_lockowner(struct nfs4_lockowner *); extern int set_callback_cred(void); |