aboutsummaryrefslogtreecommitdiff
path: root/fs/compat.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-04-27 04:52:44 -0400
committerJeff Garzik <jeff@garzik.org>2006-04-27 04:52:44 -0400
commit1a2e8a6f8ec0a068911a882a19e0912a0c89be6e (patch)
treee0e70aa880b8c8f2c1a979438a523241f6193742 /fs/compat.c
parent9f1da23b631f92393f58f664348ffc5faeaddeb3 (diff)
parent2be4d50295e2b6f62c07b614e1b103e280dddb84 (diff)
Merge branch 'master' into upstream
Diffstat (limited to 'fs/compat.c')
-rw-r--r--fs/compat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/compat.c b/fs/compat.c
index 7f8e26ea427..2e32bd34047 100644
--- a/fs/compat.c
+++ b/fs/compat.c
@@ -1217,6 +1217,10 @@ static ssize_t compat_do_readv_writev(int type, struct file *file,
if (ret < 0)
goto out;
+ ret = security_file_permission(file, type == READ ? MAY_READ:MAY_WRITE);
+ if (ret)
+ goto out;
+
fnv = NULL;
if (type == READ) {
fn = file->f_op->read;