diff options
author | Graff Yang <graff.yang@gmail.com> | 2009-08-18 14:11:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-08-18 16:31:13 -0700 |
commit | 28d7a6ae92c099d81cbea08c20be0d2cf7ccd7ca (patch) | |
tree | 7db56042d0c3e6749c749e1608b3e699485326cf /fs/fuse/file.c | |
parent | 191529756633052680dd9d23ad63744ca5aa02a1 (diff) | |
download | talos-obmc-linux-28d7a6ae92c099d81cbea08c20be0d2cf7ccd7ca.tar.gz talos-obmc-linux-28d7a6ae92c099d81cbea08c20be0d2cf7ccd7ca.zip |
nommu: check fd read permission in validate_mmap_request()
According to the POSIX (1003.1-2008), the file descriptor shall have been
opened with read permission, regardless of the protection options specified to
mmap(). The ltp test cases mmap06/07 need this.
Signed-off-by: Graff Yang <graff.yang@gmail.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Greg Ungerer <gerg@snapgear.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fuse/file.c')
0 files changed, 0 insertions, 0 deletions