Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180327
b: refs/heads/master
c: 1e41568
h: refs/heads/master
i:
  180325: 4d4e09d
  180323: 09b657b
  180319: d280d08
v: v3
  • Loading branch information
Al Viro committed Feb 7, 2010
1 parent 421d9ac commit 9c42f0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 4b06e5b9ad8abb20105b2b25e42c509ebe9b2d76
refs/heads/master: 1e41568d7378d1ba8c64ba137b9ddd00b59f893a
3 changes: 2 additions & 1 deletion trunk/fs/nfsd/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,8 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type,
flags, current_cred());
if (IS_ERR(*filp))
host_err = PTR_ERR(*filp);
host_err = ima_path_check(&(*filp)->f_path,
access & (MAY_READ | MAY_WRITE | MAY_EXEC));
out_nfserr:
err = nfserrno(host_err);
out:
Expand Down Expand Up @@ -2127,7 +2129,6 @@ nfsd_permission(struct svc_rqst *rqstp, struct svc_export *exp,
*/
path.mnt = exp->ex_path.mnt;
path.dentry = dentry;
err = ima_path_check(&path, acc & (MAY_READ | MAY_WRITE | MAY_EXEC));
nfsd_out:
return err? nfserrno(err) : 0;
}
Expand Down

0 comments on commit 9c42f0f

Please sign in to comment.