Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26209
b: refs/heads/master
c: e7edf9c
h: refs/heads/master
i:
  26207: bcbc8fb
v: v3
  • Loading branch information
James Morris authored and Linus Torvalds committed Apr 26, 2006
1 parent 9de75aa commit 0acfe93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a090d9132c1e53e3517111123680c15afb25c0a4
refs/heads/master: e7edf9cdeddc0cff125e8e658216efb2ff2b2219
4 changes: 4 additions & 0 deletions trunk/fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0acfe93

Please sign in to comment.