]> git.baikalelectronics.ru Git - kernel.git/commit
9p: fix mmap to be read-only
authorEric Van Hensbergen <ericvh@opteron.homeip.net>
Thu, 7 Feb 2008 01:25:05 +0000 (19:25 -0600)
committerEric Van Hensbergen <ericvh@opteron.homeip.net>
Thu, 7 Feb 2008 01:25:05 +0000 (19:25 -0600)
commite7e19e5c9437ce12c23bd5a28c78daecd0c52418
tree201c06c106053c609f847531a482d73e41a8cfc9
parenta5899ac121b9821747979b54681127b135acf84c
9p: fix mmap to be read-only

v9fs was allowing writable mmap which could lead to kernel BUG() cases.
This sets the mmap function to generic_file_readonly_mmap which (correctly)
returns an error to applications which open mmap for writing.

Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_file.c