Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31417
b: refs/heads/master
c: 7fc90ec
h: refs/heads/master
i:
  31415: 01fd5f4
v: v3
  • Loading branch information
J. Bruce Fields authored and Linus Torvalds committed Jun 30, 2006
1 parent f3f9832 commit d622b7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8cddc5dfc1d03a91885ef27eb91418e665577ce
refs/heads/master: 7fc90ec93a5eb71f4b08403baf5ba7176b3ec6b1
15 changes: 8 additions & 7 deletions trunk/fs/nfsd/nfsfh.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,6 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access)
goto out;
}

/* Set user creds for this exportpoint */
error = nfsd_setuser(rqstp, exp);
if (error) {
error = nfserrno(error);
goto out;
}

/*
* Look up the dentry using the NFS file handle.
*/
Expand Down Expand Up @@ -251,6 +244,14 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access)
}
cache_get(&exp->h);

/* Set user creds for this exportpoint; necessary even in the "just
* checking" case because this may be a filehandle that was created by
* fh_compose, and that is about to be used in another nfsv4 compound
* operation */
error = nfserrno(nfsd_setuser(rqstp, exp));
if (error)
goto out;

error = nfsd_mode_check(rqstp, dentry->d_inode->i_mode, type);
if (error)
goto out;
Expand Down

0 comments on commit d622b7f

Please sign in to comment.