Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60846
b: refs/heads/master
c: 9091224
h: refs/heads/master
v: v3
  • Loading branch information
J. Bruce Fields authored and Linus Torvalds committed Jul 17, 2007
1 parent 4c5bc9a commit 37868b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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: 4796f45740bc6f2e3e6cc14e7ed481b38bd0bd39
refs/heads/master: 9091224f3cff4721f295df29e8a99705a63bc4c7
14 changes: 10 additions & 4 deletions trunk/fs/nfsd/nfsfh.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,16 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access)
if (error)
goto out;

/* Check security flavor */
error = check_nfsd_access(exp, rqstp);
if (error)
goto out;
if (!(access & MAY_LOCK)) {
/*
* pseudoflavor restrictions are not enforced on NLM,
* which clients virtually always use auth_sys for,
* even while using RPCSEC_GSS for NFS.
*/
error = check_nfsd_access(exp, rqstp);
if (error)
goto out;
}

/* Finally, check access permissions. */
error = nfsd_permission(rqstp, exp, dentry, access);
Expand Down

0 comments on commit 37868b9

Please sign in to comment.