Please sign in to comment.
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 <firstname.lastname@example.org> Acked-by: Paul Mundt <email@example.com> Signed-off-by: David Howells <firstname.lastname@example.org> Acked-by: Greg Ungerer <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
- Loading branch information...