projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3c0cee
)
nfsd4: 4.1 SECINFO should consume filehandle
author
J. Bruce Fields
<bfields@redhat.com>
Thu, 16 Dec 2010 14:57:15 +0000
(09:57 -0500)
committer
J. Bruce Fields
<bfields@redhat.com>
Fri, 17 Dec 2010 20:48:23 +0000
(15:48 -0500)
See the referenced spec language; an attempt by a 4.1 client to use the
current filehandle after a secinfo call should result in a NOFILEHANDLE
error.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/nfs4proc.c
b/fs/nfsd/nfs4proc.c
index 0cdfd022bb7b307d344989f493b9873b903dd22d..bad4bf8e4bbc52764ab450a36b727f6ebb1cd47f 100644
(file)
--- a/
fs/nfsd/nfs4proc.c
+++ b/
fs/nfsd/nfs4proc.c
@@
-769,6
+769,9
@@
nfsd4_secinfo(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
} else
secinfo->si_exp = exp;
dput(dentry);
+ if (cstate->minorversion)
+ /* See rfc 5661 section 2.6.3.1.1.8 */
+ fh_put(&cstate->current_fh);
return err;
}