diff options
author | Dmitry Kasatkin <dmitry.kasatkin@huawei.com> | 2014-10-26 11:42:07 +0100 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2016-05-01 15:23:51 +0200 |
commit | 39d637af5aa7577f655c58b9e55587566c63a0af (patch) | |
tree | f185c2730ff632c3decf311d9f0a580a846883f0 /security | |
parent | fs: fix over-zealous use of "const" (diff) | |
download | linux-39d637af5aa7577f655c58b9e55587566c63a0af.tar.xz linux-39d637af5aa7577f655c58b9e55587566c63a0af.zip |
vfs: forbid write access when reading a file into memory
This patch is based on top of the "vfs: support for a common kernel file
loader" patch set. In general when the kernel is reading a file into
memory it does not want anything else writing to it.
The kernel currently only forbids write access to a file being executed.
This patch extends this locking to files being read by the kernel.
Changelog:
- moved function to kernel_read_file() - Mimi
- updated patch description - Mimi
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@huawei.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Reviewed-by: Luis R. Rodriguez <mcgrof@kernel.org>
Acked-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions