security: allow Kconfig to set default mmap_min_addr protection
authorEric Paris <eparis@redhat.com>
Thu, 31 Jan 2008 20:11:22 +0000 (15:11 -0500)
committerJames Morris <jmorris@localhost.localdomain>
Wed, 6 Feb 2008 13:39:46 +0000 (21:39 +0800)
commita5ecbcb8c13ea8a822d243bf782d0dc9525b4f84
tree902df830bf581642a49bbb1e4f4de5b9f80eeaa1
parent551e4fb2465b87de9d4aa1669b27d624435443bb
security: allow Kconfig to set default mmap_min_addr protection

Since it was decided that low memory protection from userspace couldn't
be turned on by default add a Kconfig option to allow users/distros to
set a default at compile time.  This value is still tunable after boot
in /proc/sys/vm/mmap_min_addr

Discussion:
http://www.mail-archive.com/linux-security-module@vger.kernel.org/msg02543.html

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/Kconfig
security/security.c