aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/vfs.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2010-03-04 12:03:16 -0500
committerJ. Bruce Fields <bfields@citi.umich.edu>2010-03-04 12:04:51 -0500
commit4ea41e2de5bba756858bb40f964e3490b6d1a25c (patch)
tree51a688be321dd42f80d8a0c966eb6a60408d50b3 /fs/nfsd/vfs.c
parent8d75da8afd068fa58b35e69c7c8c46770d9e7a98 (diff)
parent398007f863a4af2b4a5a07219c5a617f1a098115 (diff)
Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs into for-2.6.34-incoming
Resolve merge conflict in fs/xfs/linux-2.6/xfs_export.c.
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}