From: Graff Yang Date: Tue, 18 Aug 2009 21:11:17 +0000 (-0700) Subject: nommu: check fd read permission in validate_mmap_request() X-Git-Tag: v2.6.31-rc7~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28d7a6ae92c099d81cbea08c20be0d2cf7ccd7ca;p=pandora-kernel.git 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 Acked-by: Paul Mundt Signed-off-by: David Howells Acked-by: Greg Ungerer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed