Re: [PATCH] mm/nommu.c: check read permission in validate_mmap_request()

From: Paul Mundt
Date: Fri Aug 14 2009 - 00:57:41 EST


On Fri, Aug 14, 2009 at 11:19:21AM +0800, graff.yang@xxxxxxxxx wrote:
> From: Graff Yang <graff.yang@xxxxxxxxx>
>
> According to the POSIX (1003.1-2008), the file shall have been opened
> with read permission, regardless of the protection options specified.
> The ltp test cases mmap06/07 need this.
>
> Signed-off-by: Graff Yang <graff.yang@xxxxxxxxx>

Looks good. This brings it more in line with MMU Linux anyways, so it's
worthwhile regardless.

Acked-by: Paul Mundt <lethal@xxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/