aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/vfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r--fs/nfsd/vfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 8afdba5082e8..43bd776c4882 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -780,6 +780,8 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type,
780 flags, current_cred()); 780 flags, current_cred());
781 if (IS_ERR(*filp)) 781 if (IS_ERR(*filp))
782 host_err = PTR_ERR(*filp); 782 host_err = PTR_ERR(*filp);
783 else
784 host_err = ima_file_check(*filp, access);
783out_nfserr: 785out_nfserr:
784 err = nfserrno(host_err); 786 err = nfserrno(host_err);
785out: 787out:
@@ -2120,7 +2122,6 @@ nfsd_permission(struct svc_rqst *rqstp, struct svc_export *exp,
2120 */ 2122 */
2121 path.mnt = exp->ex_path.mnt; 2123 path.mnt = exp->ex_path.mnt;
2122 path.dentry = dentry; 2124 path.dentry = dentry;
2123 err = ima_path_check(&path, acc & (MAY_READ | MAY_WRITE | MAY_EXEC));
2124nfsd_out: 2125nfsd_out:
2125 return err? nfserrno(err) : 0; 2126 return err? nfserrno(err) : 0;
2126} 2127}