kNFSd - 1 of 6 - Fix problem with stale filehandles.
Subsystems (2)
PATCH 1/1 kNFSd - 1 of 6 - Fix problem with stale filehandles.
nfsd_setuser was not called until after filehandle lookup was done, so filehandle lookup would use the wrong userid, and so the permission checking in nfsd_acceptable would be bogus.
----------- Diffstat output ------------
./fs/nfsd/nfsfh.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
fs/nfsd/nfsfh.c renamed from fs/nfsd/nfsfh.c~current~ +3 -3
@@ -164,6 +164,9 @@ fh_verify(struct svc_rqst *rqstp, struct goto out; } +/* Set user creds for this exportpoint */ +nfsd_setuser (rqstp, exp); +/* * Look up the dentry using the NFS file handle. */
@@ -224,9 +227,6 @@ fh_verify(struct svc_rqst *rqstp, struct inode = dentry->d_inode; -/* Set user creds for this exportpoint */ -nfsd_setuser (rqstp, exp); -/* Type check. The correct error return for type mismatches * does not seem to be generally agreed upon. SunOS seems to * use EISDIR if file isn't S_IFREG; a comment in the NFSv3
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs