Re: [PATCH] security: do not check mmap_min_addr on nommu systems

From: Andrew Morton
Date: Thu Dec 03 2009 - 15:01:43 EST


On Thu, 03 Dec 2009 14:43:01 -0500
Eric Paris <eparis@xxxxxxxxxx> wrote:

> nommu systems can do anything with memory they please and so they already
> win. mmap_min_addr is the least of their worries. Currently the
> mmap_min_addr implementation is problamatic on such systems. This patch
> changes the addr_only argument to be a flags which can take the arguments
> for addr_only or not_addr. LSMs then need to properly implement these two
> flags.

This replaces David's
nommu-ignore-the-address-parameter-in-the-file_mmap-security-check.patch,
which missed 2.6.32.

What are our thoughts wrt backporting this fix in some form into
2.6.32.x and earlier?


--
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/