mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
Merge master.kernel.org:/pub/scm/linux/kernel/git/chrisw/lsm-2.6
This commit is contained in:
commit
a2218cac0a
1 changed files with 3 additions and 0 deletions
|
@ -497,6 +497,9 @@ static ssize_t do_readv_writev(int type, struct file *file,
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = rw_verify_area(type, file, pos, tot_len);
|
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)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue