diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-30 08:38:46 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-30 08:38:46 -0700 |
commit | a2218cac0aacecbecebd3cabc43cc8a4a09cecbb (patch) | |
tree | 70bc7d07d3af54f125c28154684c1394a1a6bd66 | |
parent | a44fe13eab664ac488ced0845d9885b019bd24c5 (diff) | |
parent | 411b67b4b6a4dd1e0292a6a58dd753978179d173 (diff) | |
download | linux-a2218cac0aacecbecebd3cabc43cc8a4a09cecbb.tar.gz linux-a2218cac0aacecbecebd3cabc43cc8a4a09cecbb.tar.bz2 linux-a2218cac0aacecbecebd3cabc43cc8a4a09cecbb.zip |
Merge master.kernel.org:/pub/scm/linux/kernel/git/chrisw/lsm-2.6
-rw-r--r-- | fs/read_write.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index b60324aaa2b6..a091ee4f430d 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -499,6 +499,9 @@ static ssize_t do_readv_writev(int type, struct file *file, ret = rw_verify_area(type, file, pos, tot_len); if (ret) goto out; + ret = security_file_permission(file, type == READ ? MAY_READ : MAY_WRITE); + if (ret) + goto out; fnv = NULL; if (type == READ) { |